On Wed, 4 Jun 2008, Andrew Coppin wrote: > Henning Thielemann wrote: > > Sounds like a generator for scientific articles. :-) > > Maybe > > http://hackage.haskell.org/cgi-bin/hackage-scripts/package/markov-chain > > can be of help for you. It's also free of randomIO. > > That certainly looks interesting. Presumably if I train it right, it'll > figure out that sentences need to start uppercase and end with a > full-stop, and maybe have a few other punctuation marks thrown in.
If you use different encodings for periods for abbreviations and sentence ends, this is warranted. > I'm not sure I trust it to generate valid LaTeX markup, but I can give > it a try! ;-) You may not want to construct a Markov Chain for characters but for larger objects, say words and LaTeX commands. However when it comes to correct parentheses, a Markov Chain might not be the appropriate tool, but a grammar. _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe