ngrams - get all n-grams from a text