omg (OCaml Markov Gen) is an OCaml library to generate text using Markov Chains.
omg
The code is inspired by markovgen.