Ngram method simplification