2016
2016 copied to clipboard
Rule-Based Story Generator
Hi! I've put together a simple rule-based story generator that uses input grammars and lists of variables. It's a bit silly, but kind of fun. :)
You can find the repo here: https://github.com/scotchfield/story-grammar
A sample >50k book based roughly on scary nosleep stories is here: https://github.com/scotchfield/story-grammar/blob/master/books/nosleep.txt
I added a lot of instructions and examples, so if anybody happens to give it a try with their own grammars, please let me know! I'd love to see the output.
Sample introductory paragraph:
Travis and the petrifying seat belt
Before I start, I want to say that this is story is thrilling. If it wasn't for Travis, I probably would have grown up much differently. Travis caused a lot of problems for me when I was growing up. That's probably why you'll be so scared by this dreadful tale.
Thanks to @Yangzhedi, there's a Chinese translation! Ahh! So cool. :)
https://github.com/Yangzhedi/story-grammar