If anyone is interested to play around with Markov chains and text, I started a tiny ruby project a few years ago: https://github.com/rickhull/markov-text-destroyer
I've been meaning to make it into a proper gem and update the README. Perhaps now is the time. Check examples/ in the meantime.