Markov Poem Generator

The Markov Poem Generator creates poems from an input text using a Markov Chain i.e. a stochastic process that satisfies the Markov property. To simplify, it is a process that predicts the future based solely on the present state and includes a random variable.

To create a Markov poem enter your text into the box below. Optionally you can also enter the number of words per poem line and the number of lines you'd like to see in the poem. If no values are entered the poem will have a random number (between 4 and 8) of lines and an random number (between 6 and 10) of words per line.

The "One Word Deep" and "Two Words Deep" buttons refer to how deep the selected Markov chain will be. Pick one word for a more random poem and two words for more coherent lines.



Try entering the text "bling," "nevermore" or "stop making sense."