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
Both grammar definitions are included in the Examples folder.
- .NET Framework / C#
- No external dependencies
GNU GENERAL PUBLIC LICENSE V 3
Copyright (C) Massimo Barbieri