Markov Chain Generator

v.0.0.1

Put some text into the field below. For example, you can copy-paste a couple of paragraphs from a book, or a news article. The results will be more interesting if more data is provided. Check out Project Gutenberg for some ideas and public domain works of literature to copy-paste from.

Enter a number into the field labeled "Order". The lower the number, the more chaotic the generated text will be, the higher the number, the bigger (and therefore slower!) is the created Markov chain. You can enter numbers between 1 and 10, but I don't recommend going higher than 4 or 5.

Click the "Create Chain" button. If you inputted too much text or set order to be too high, it might take a second or two to generate the chain. I generated a chain from the entire "The Adventures of Tom Sawyer" by Mark Twain with the order of 3, but the text generation was rather slow afterward.

Enter the number of characters you wish to generate into the "Length" field. Start with 1000 or 2000 (or less) to see how your computer handles this. Generation will take longer on bigger chains with higher orders.

Click the "Generate Text" button and enjoy the output! Try experimenting, for example by combining lyrics from modern performers with classical poetry, or technical literature with romance novels, into one chain. Get creative!

You can learn more about Markov chains in this Wikipedia article.
Order: 
Length: