Text generation using Markov chain models

Markov chains is one of the oldest ways to generate quite believable text. Rather than generating text by randomly selecting characters (possible but completely impractical),  we use the Markov property that follows the chain of linked events, where what get generated next depends only on what is generated currently. Typically generating text trough a Markov process…