TinyGrammar is a minimalistic implementation of Chomsky's generative grammar.
The generator creates random sentences starting from a grammar definition; it can be used as a library or via command line.
Grammar rules can be added programmaticaly or stored on a text file in a very intuitive format - here's an example.
I used TinyGrammar for two generators, you can try them on my site:
-
Tecnichese generator is a funny nonsense-technical Italian sentence generator
-
Sonic Pi nonsense music generator is a generator of code for Sonic Pi, the "Live Coding Music Synth" created by Sam Aaron.
Both grammar definitions are included in the Examples folder.
- .NET Framework / C#
- XUnit
- No external dependencies
GNU GENERAL PUBLIC LICENSE V 3
Copyright (C) Massimo Barbieri