NaNoGenMo / 2016

National Novel Generation Month, 2016 edition.
https://nanogenmo.github.io
162 stars 7 forks source link

Rule-Based Story Generator #107

Open scotchfield opened 7 years ago

scotchfield commented 7 years ago

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 commented 7 years ago

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

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