Tracery
Tracery: A story-grammar generation library for javascript
This package uses what is known as Syntactic Sugar: ES6's classes. They improve code readability and additionally, this package is designed for V8 5.9+ (which uses the new Compiler Pipeline, with TurboFan and Ignition). This is also a NPM library designed for Node.js, and requires minimum Node.js 8.x.
Installation
This is hosted at npm, so it can be installed like so:
$ npm install tracery-es8 --productionnpm installation...
Example usage
const tracery = ; const grammar = tracery; grammar; console;
Sample output:
I am a happy iguana.I am an angry fox.I am a sad capybara.