Markov process is a stochastic model describing a sequence of possible events in which the probability of each event depends only on the state attained in the previous event.
This is higher order Markov chain
Depending on the type of the prior word, it randomly selects the next word from a list of compatible word types.
Am I misunderstanding?
There are no numbers in https://github.com/adamjgrant/Tiny-Predictive-Text/blob/main...
A Markov chain could express probabilities like completing "the original" to -> "poster" (0.1), -> "McCoy" (0.2), -> "and best" (0.7) which I don't think this does. But I am tired and maybe also misunderstanding.
Kind of splitting hairs here I guess, but I genuinely don’t know.