
Text Ngram Generator
Extract word and character n-grams (bigrams, trigrams, 4-grams) from text with frequency rankings, relative percentages, and optional stopword removal.
Open toolEnter a target keyword, context window size, and source text to generate aligned Keyword-in-Context (KWIC) concordance lines and token frequency statistics.
Enter the inputs, then select Generate KWIC Concordance.
Result will appear here
The analyzer tokenizes your corpus, locates every word-boundary match of your target term, slices fixed-width character windows to the left and right, and formats a vertically centered KWIC index.
DensityPct = (HitCount / TotalTokens) * 100; TTR = UniqueTokens / TotalTokens.
Supports both case-insensitive and case-sensitive whole-word matching.
Core metrics reported by the Text Concordance Generator for linguistic and editorial analysis.
| Concordance Metric | Definition | Typical Window / Scale | Editorial / Linguistic Use |
|---|---|---|---|
| KWIC Line | ...left context [KEYWORD] right context... | 25 - 50 chars per side | Reveals immediate collocations, prepositions, and modifier patterns. |
| Raw Hit Count | Total occurrences of target token | Integer count | Measures exact term repetition across the passage. |
| Relative Density | (Hits / TotalWords) * 100% | 0.5% - 2.5% typical | Checks whether a keyword is under-used or over-stuffed. |
| Type-Token Ratio (TTR) | UniqueWords / TotalWords | 0.40 - 0.75 | Measures lexical diversity of the submitted text. |
Generate your concordance index in three steps.
Supply the article, academic abstract, or transcript you want to examine.
Specify the target word (such as `data`) and how many characters of surrounding context to show on each side.
Review the centered KWIC lines and the top vocabulary frequency breakdown.
Practical corpus linguistics and content editing workflows.
Finds all 4 occurrences of 'data' ('data pipelines', 'data validation', 'raw data', 'data models') aligned in a centered KWIC column with 35 characters of left/right context.
Tracks every sentence where a motif or proper noun appears and reports its line number and character offset.
Leave the target word blank to automatically surface the highest-frequency terms and their contexts.
Each concordance line displays the match index, right-aligned left context, bracketed `[keyword]`, and left-aligned right context.
Scanning down the vertical `[keyword]` column lets you spot repeated verb choices or awkward phrasing immediately.
The bottom section lists the top 10 most frequent words in the corpus with their raw counts and percentage shares.
Whole-word matching is used by default so short tokens do not trigger false substring hits.
If your target keyword does not appear in the text, the tool reports 0 matches and displays the top recurring tokens from the passage instead.
Source corpus text must not be empty.

Extract word and character n-grams (bigrams, trigrams, 4-grams) from text with frequency rankings, relative percentages, and optional stopword removal.
Open tool
Generate LaTeX table and booktabs code from CSV, TSV, or pipe-delimited data with automatic character escaping, column alignment, and captions.
Open tool
Generate multi-line banner ASCII art from text in Block, Shadow, Hash Banner, and Slim styles with source-code comment wrappers (//, #, /* */).
Open toolChoose another tool for your next calculation, conversion, or text task.

Validate BibLaTeX and BibTeX .bib files online: check balanced curly braces, detect duplicate citation keys, and verify required fields per entry type.
Open tool
Format and align delimited text into padded monospace columns (like Linux column -t) with custom input delimiters, column alignment, and output separators.
Open tool
Convert horizontal text into vertical stacked letters, multi-column top-to-bottom vertical text, and CSS writing-mode: vertical-rl / text-orientation code.
Open toolCount words and discover the most frequent terms in text.
Open toolAnswers about using Text Concordance Generator and understanding its results.
A Keyword-in-Context (KWIC) concordance lists every occurrence of a search word aligned down the center of the page, flanked by a fixed number of characters from the preceding text on the left and the following text on the right.
Linguists, legal researchers, and editors use KWIC concordances to inspect collocations (words that frequently appear immediately before or after a term), verify terminology consistency, and spot repetitive phrasing.
If no specific target word is entered, the generator automatically identifies the most frequent content words in your passage and builds a KWIC concordance for the top recurring term alongside a full frequency ranking.
Relative frequency divides the raw match count by total word tokens and multiplies by 1,000, allowing fair comparison across documents of different lengths.
Choose another tool for your next calculation, conversion, or text task.