Text analytics of N-grams