Generates text based on input using an order 3 Markov chain.