2016 icon indicating copy to clipboard operation
2016 copied to clipboard

Rule-Based Story Generator

Open scotchfield opened this issue 7 years ago • 1 comments

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.

scotchfield avatar Nov 10 '16 23:11 scotchfield

Thanks to @Yangzhedi, there's a Chinese translation! Ahh! So cool. :)

https://github.com/Yangzhedi/story-grammar

scotchfield avatar Nov 13 '16 14:11 scotchfield