set ngram order