Uses markov chains to generate text given a corpus.