Generates sentences using Markov Chains.
I've included a couple sample input files taken from Project Gutenberg, such as Sherlock Holmes and Pride and Prejudice. They're in the input/ directory.
Unfortunately some of the Gutenberg text is a little messed up (some words concatenated for example), so the output can be strange sometimes. I also don't have any measures against reading "sentences" such as "CHAPTER XIV."
I also have a Google Voice parser. Use Google Takeout to dump your Voice history, and it'll read the texts as if it were some book. It only reads messages sent by you.
The testing infrastructure is pretty lame since this is just something I tossed together. Run ./tests.sh to run all of the tests. If anything went wrong, an assertion will fail. In the case of a successful run, there will be no output.
Some example sentences:
-
I had risen out of the copper beechesadventure i could easily do you know.
-
To an armchair threw over a small t stands forpapier.
-
His right forefinger and questionablememory.
-
How youdeduce it is scored by the softer passions save with a distracting factor whichmight throw a scandal in order to week between cocaine and came home in our lodgings inbaker street buried among his summonsto odessa in bohemiai.
-
I carefully examined the drowsiness of the trained reasonerto admit such intrusions into harness.