This page demonstrates generating text from a Markov chain. The program reads from a text file made of tweets from this motivational tweeter.
Based on Programming A2Z class example code.
Code modified to generate new text based on 5 gram markov chain. The beginning of new text must start with a capitalized word.
The output is a sentence ending with [.!?]