Rules of the Game
The Markov chain-based AI finds the most frequent continuation options in the text. Among them it chooses one according to the indicated method. In the frequency-based method, it is more likely to choose the option that appears most often in the text, in the simple method, it chooses one of the best options randomly, and in the last method, it chooses the most frequent option in the text. You can vary the number of best continuation options and the number of last words it analyses to find a continuation.