Designing a Markov model of n-grams in natural language