Mutter: Rigorous Random Text

Generating gibberish is easy. Generating randomized-but-meaningful text? Not so much. Whether you're creating a Dr. Who plot generator or a novelty Lorem Ipsum site, ironing out the inherent structures of the text you're working with — and writing code that can output those structures fluently — is tough work.

Fortunately, enterprising developers have already done the hard work. rmutt is a UNIX utility that takes "grammar definitions" and uses them to spit out random text. Grammars can be simple (a list of strings that are chosen at random) or complex (deeply nested conditional rules to handle tenses, genders, pronouns, etc). Once a grammar is written, though, rmutt can generate crazy stuff from it in the blink of an eye.

Mutter, for its part, is a lightweight REST wrapper around rmutt and a bundle of fun grammar definitions that show off its capabilities. If you want to find out what Sam and Dean are up to, it can help. If you want to use it as a turnkey starting point for your own text generator, check out the source on Github.

Click these to make fun-times

Eclipse Phase Jobs
Generates random jobs for Eclipse Phase crews seeking work.
Shindelar Facts
Lists impressive facts about Joe Shindelar.
Module Monday
Produces passably coherent Module Monday articles for Lullabot.com.
Supernatural
Shockingly believable plots for The CW's hit show. Because everyone needs a little Dean.
Sleepy Hollow
Realistic episode summaries for the NBC's hit series, Sleepy Hollow. Now with extra Apocalypse.