Build overlapping word or character windows of length 1 through 5 and rank repeated windows by count.
The frame below runs the same code as this page, in the reader's own browser. Nothing is sent to us, and nothing is sent to you.
Pick a dark background and the text and panels follow it, so the frame stays readable on a dark page.
Word mode slides across whitespace tokens, while character mode collapses whitespace runs and advances through UTF-16 substring positions. Two-token word windows, case folding, and a 50-row display are the defaults, and every percentage uses the total number of overlapping windows.
the cat sat on the mat
Ngram Count Percentage ------- ----- ---------- the cat 1 20 cat sat 1 20 sat on 1 20 on the 1 20 the mat 1 20
Corpus lessons count common bigrams, language-model demonstrations construct trigram tables, and typo investigations compare character trigrams from product names.