switch for ngrams