Generate N-grams (Bigrams, Trigrams) from Text
Generate the n-grams (bigrams, trigrams…) of a text, by word or character, in your browser.
Sorted by decreasing frequency. 100% local analysis.
🔒 100% client-side — no data sent
Generate the n-grams of any text, from bigrams to trigrams and beyond, for your NLP and language-processing analyses. Everything is computed 100% in your browser, with no data upload and no install.
What is it for?
- ▸ Extract frequent bigrams and trigrams from a corpus for keyword analysis
- ▸ Prepare n-gram features for a text classification model
- ▸ Study word co-occurrences in a document or SEO article
- ▸ Quickly prototype a statistical language model for teaching purposes
FAQ
What is an n-gram?
An n-gram is a contiguous sequence of n items, usually words or characters, extracted from a text. A bigram groups two items, a trigram three, and so on.
What are bigrams and trigrams used for in NLP?
They capture the local context between neighboring words, useful for text prediction, sentiment analysis or keyword extraction. They are core features of many language models.
What is the difference between word and character n-grams?
Word n-grams group consecutive words, while character n-grams group letters. The former help with semantic context, the latter with language detection or typo handling.