ToolJovia
Text

N-gram Generator

Generate and count overlapping word or grapheme n-grams from text with configurable n and report length.

✓ Browser-local processing
Up to 100,000 UTF-16 code units. Input stays in this browser tab.

Loading tool…

How to use N-gram Generator

Inspect recurring adjacent phrases or character sequences. N-grams preserve local order and overlap, helping reveal repetition beyond single-word frequency.

  1. Choose word or grapheme units and enter text.
  2. Set n, case handling, and report length.
  3. Generate overlapping sequences and inspect their counts.

Good to know

  • Word mode ignores punctuation and can form n-grams across sentence boundaries. Character mode includes whitespace.
  • At most 20,000 units, n from 1–10, and 1,000 displayed rows. No padding or language model is added.

Common questions

Do the sequences overlap?

Yes. For red blue green, bigrams are red blue and blue green.

What if n is larger than the input?

There are no complete n-grams, so the report contains only its header and zero totals.

Keep going with related tools

All text →