N-gram Counter
Count how often each run of n words appears in your text, such as two-word pairs or three-word phrases, and see the most common ones first.
1 Paste your text and pick the options
2 Your answer
Your answer shows here as you type.
How to use the N-gram Counter
- Paste or type your text into the box.
- Set N to the number of words in each group, such as 2 for pairs or 3 for phrases.
- Change Show top to see more or fewer results, and untick Ignore case to keep capital letters separate.
Frequently asked questions
What is an n-gram?
An n-gram is a run of n items in a row. In word counting, a 1-gram is a single word, a 2-gram (bigram) is a pair of consecutive words, and a 3-gram (trigram) is three consecutive words.
How many n-grams does a text have?
A text with W words has W minus n plus 1 n-grams in total, counting repeats. For example, 10 words give 9 bigrams and 8 trigrams.
Why does ignoring case change the counts?
Without it, The and the are counted as different words. Lowercasing all words merges them, so repeated phrases that differ only in capitals are counted together.
Are punctuation marks counted?
No. Only letters, digits and apostrophes inside words are kept, so punctuation splits the text into words. N-grams can still run across a sentence end.
Wrote something with AI? Slop Monkey rewrites it so it sounds like you, and keeps your facts.