Can you guess which text generation method was used to create each of these Harry Potter fanfiction sentences?
Real fanfiction sentences were taken from the first twelve chapters of Harry Potter and the Methods of Rationality, one of the most popular Harry Potter fanfiction stories. The tokenization process added some extra spaces to them.
In the Simple Markov Chain, the computer picked a word at random to start the sentence. Then, it looked at the list of words that came after that word in the real sentences and chose one at random, adding it to the sentence. Then, it looked at the list of words that came after that word in the real sentences and chose one at random, and so on.
The Order 2 Markov Chain is similar to the simple Markov chain except the computer looked at the previous two words when deciding which word should come next.
Finally, part-of-speech replacement took a bunch of real sentences and swapped out all the words for different ones that were the same part of speech. Nouns were replaced with nouns, verbs with verbs, and so on.
Ready to start?