Package markov handles markov chain generation.
This Markov chain code is taken from the "Generating arbitrary text" codewalk: http://golang.org/doc/codewalk/markov/
Minor modifications have been made to make it easier to integrate with a webserver and to save/load state
Chain contains a map ("chain") of prefixes to a list of suffixes. A prefix is a string of prefixLen words joined with spaces. A suffix is a single word. A prefix can have multiple suffixes.
NewChain returns a new Chain with prefixes of prefixLen words.
Generate returns a string of at most n words generated from Chain.
type Prefix string
Prefix is a Markov chain prefix of one or more words.
Shift removes the first word from the Prefix and appends the given word.