An n-gram is a sliding window of n consecutive items in a text. A 1-gram (unigram) is a single word; a 2-gram (bigram) is two consecutive words ("word count", "to be"); a 3-gram (trigram) is three consecutive words. N-gram counts are foundational for natural language processing, predictive text, and SEO keyword research.
N-gram
A contiguous sequence of n items (usually words or characters) from a text.