normalizing ngrams