substitute ngram for trigram