This page demonstrates generating text from a Markov chain. The program reads in text from the box below and generates new text based on word-based "n-gram" probabilities from the source text. However, the words themselves aren't used and instead the n-grams are sequenced by "parts of speech." A separate list of words by parts of speech is maintained and substituted in afterwards. File issues and view source on github.