Implementing Markov Chain in Swift. Generating Texts.
I would like to show you a simple application of Markov chain algorithm — generating random texts based on an actual corpus. Readers unfamiliar with Markov chains may find a lot of research on the topic online or read this article by me.