N-gram generator

Loading…

All tools › Extracting

N-gram generator

List every pair, triple or longer run of words or characters, with counts.

It runs entirely in this browser tab: the text you paste is never uploaded, and the tool makes no network request while it works. Open your browser's network panel and try it — nothing leaves the page. There is no sign-up and no limit beyond what your own browser can hold.

Settings

Made of
Choices: Words, Characters.
Size
A number from 1 to 10.
Least occurrences
Anything rarer than this is left out of the table. A number from 1 to 1000.
Ignore case
On or off. Starts on.
Ignore accents
On or off. Starts off.

How to use it

  1. Paste your text into the box above, or open a file.
  2. Adjust the settings beside it until the result is what you wanted.
  3. Copy the result, or save it as a file. The result updates as you type.

Questions

Is my text uploaded anywhere?
No. This page carries the whole tool as WebAssembly and runs it on your own device. Nothing you paste is sent anywhere.
Is there a size limit?
No fixed limit. Very large text is processed in full but is not laid out in the editing box, because drawing several megabytes of text sixty times a second would make typing unusable; the tool says so when that happens.
Can I get this result again later?
The settings travel in the page's address, after the #, so a link reproduces them exactly — and the fragment of an address is never sent to a server. Your last settings are also remembered on this device.
Is there a version that is not a web page?
Yes. The same tools are built as a desktop application from the same code, with a save dialog instead of a download and no network code at all.

Other tools for extracting

Extract links
Find every link, group them by domain and drop the tracking parameters.

Split full names
Break a list of names into title, first, middle, surname and degree.

All forty-nine tools