support for sub-ngrams