variable n-grams