Tested tool guide
Text and writing tools
Checked August 16, 2026
What N-Gram Analyzer does, with a checked example
Paste any block of text and this tool slices it into n-grams: sliding windows of n consecutive words, from single-word unigrams up to the trigram and higher orders you select. Every distinct n-gram is counted, ranked from most to least frequent, and drawn as a bar distribution that shows the shape of your vocabulary at a glance. The surprise for most users: the windows overlap, so n-gram counts are not independent. In 'the cat sat', the token 'the' contributes to the unigram 'the', the bigram 'the cat', and the trigram 'the cat sat' alike. The analysis runs entirely in your browser; nothing is uploaded.
Worked example
A concrete input and expected output from the current implementation.
Input
The cat sat on the mat. The cat sat.
->
Expected output
Unigrams (9 tokens, 5 unique): the 3; cat 2; sat 2; on 1; mat 1
Bigrams (8 total, 6 unique): the cat 2; cat sat 2; sat on 1; on the 1; the mat 1; mat the 1
Trigrams (7 total, 6 unique): the cat sat 2; cat sat on 1; sat on the 1; on the mat 1; the mat the 1; mat the cat 1
Windows overlap and slide one token at a time, so the 9-token input yields T-n+1 n-grams per order: 9 unigrams, 8 bigrams, 7 trigrams. The phrase 'the cat sat' recurs twice, while the remaining stretch produces distinct singletons. This assumes the tool lowercases and strips punctuation; without case folding, 'The' and 'the' would rank as separate rows.