-
"Marky Markov is an experiment in Markov Chain generation implemented in Ruby. It can be used both from the command-line and as a library within your code." It's very fast, and basically does all the work I've been doing on my projects by hand for me. But better.