Text-generation with markov chain. This can be used for several other purposes:
- chat conversation generation
- quotes/lyrics/speech generation
$ cat alice_oz.txt | go run markov.go
Output:
Woodman very unhappy, answered the Woodman; so do not know of to keep tramping forever, without getting anywhere at all. She stood, with Toto curled up on tiptoe, and peeped over the fire, and at last and stepped off upon the front of them, and find out the proper way of settling all difficulties, great or small. 'Off with her mind to harness him like a star-fish,' thought Alice. 'I've so often read in the road and lay still. Little Toto, now that he is too heavy to lift. We must certainly get to twenty at that rate! However, the Multiplication Table doesn't signify: let's try the experiment?' 'He might bite,' Alice cautiously replied, not feeling at all for any of them about me.