A quick and dirty implementation using markov chains for generating sentences.