Tracery is a story-grammar generation library originally developed by Kate Compton.
More information can be found on the original readme.
With this port, you can read JSON Tracery grammars straight from an included file or a stringified variable and create generative text.
How to use
grammar_load_fromwith the grammar object and the
json_decodeof the JSON input
grammar_flattenof the grammar, which will default to the #origin# tag, but can be defined as another root.
Examples of the above can be found in the
obj_example object included in the project.