This reminds me of a Google exercise within their Python course, wherein it read in a text file and built dictionaries of every word and the words that followed said word in the text in order to create a prosaic style that mimed the author of the original text. It was quite interesting to run and throw a text file at it to see what it produced.
Comments (163) 64 threads
Show all comments
Showing thread 12 of 64
EDIT: I have a cached version of the exercise if anyone feels like looking at it:
https://github.com/AdmiralAsshat/learn_python/blob/master/go...
There should be an "alice.txt" in the same directory as a sample file to throw at it.