8/10/2004 03:24:50 PM|||Mike|||rmutt random text generator
This is another fun program. It (maybe, kind of) gives you a way to use those hard-won sentence diagramming skills. What you do is write up a "grammar" that defines the kind of text you want, with options. You feed the grammar into the software, and the software spits out random text that obeys your grammar.
It's sort of like writing a mad-libs story and having the software fill in the words, but with lots more options. For example, with this grammar:
story: "The " character " " verb " the " character ".\n";
character: adj " " animal;
adj: "scary" | "purple" | "lazy" | "unpredictable";
animal: "moose" | "squirrel" | "avocado" | "sheep";
verb: "ate" | "chased" | "bought a car from";
I got (I did it 3 times):
The lazy squirrel chased the unpredictable sheep.
The unpredictable squirrel bought a car from the purple sheep.
The unpredictable moose bought a car from the scary avocado.
Somebody built a rather complicated grammar (this was in an older program called "The Dada Engine") that generates completely random postmodern essays. He published one of them.
|||109217309009869201|||rmutt random text generator