Skip to main content
v2026.11,986 entries · CC-BY 4.0

Concordancer Software in Corpus Research: KWIC Sorting, Collocates, and Tool Workflows

Reference guide to concordancer software in corpus linguistics: KWIC indexing, positional sorting, collocate metrics, and step-by-step workflows.

Written and maintained by CASRAI Editorial Board

Published

On this page

A concordancer is corpus analysis software that searches a text collection for a target word, lemma, phrase, or tag pattern and displays every match as a centered Key Word in Context (KWIC) line flanked by its surrounding left and right co-text. Researchers use desktop and online concordancers such as AntConc, Sketch Engine, and English-Corpora.org to sort context windows, compute collocation statistics, and verify lexical patterns against full source texts.

In linguistics research, lexicography, and digital humanities, concordancing connects corpus-wide frequencies to close textual evidence. Whereas qualitative data analysis software including NVivo, ATLAS.ti, and MAXQDA groups excerpts by manual codebooks, a concordancer indexes every token offset from small interview sets to multi-billion-word web archives.

What a concordancer is used for in research

Researchers use concordancers whenever raw word frequencies hide how an expression behaves grammatically or pragmatically. Aligning matched hits vertically down the center of the screen and sorting adjacent tokens left or right exposes phraseological frames, argument structures, and semantic prosody.

What is a concordancer?

A concordancer is software that compiles, searches, and sorts a concordance from digital texts, whereas a concordance is the resulting list of citations. Concordancers center the matched node inside surrounding tokens called Key Word in Context, Keyword in Context, or KWIC, querying plain strings, lemmas, part-of-speech tagging, semantic tags, and document metadata.

Concordancers use two deployment models. Desktop tools such as AntConc 4.4.2 and #LancsBox X index local files (plain text, XML, Word, PDF, EPUB, or subtitle transcripts) offline on the researcher’s workstation. Browser-based platforms — commonly called an online concordancer — such as Sketch Engine, English-Corpora.org, and Voyant Tools query pre-indexed reference corpora or server pipelines in a web browser.

What is a concordance used for?

A concordance is used to inspect authentic lexical and grammatical patterns in context, test distributional hypotheses, and identify statistically salient word partnerships (collocations). Lexicographers pair KWIC concordances with sentence rankers such as Sketch Engine’s Good Dictionary Examples (GDEX) to separate word senses and pick clear citations, while discourse analysts combine KWIC sorting with dispersion plots to test whether patterns spread across files or cluster in one genre.

Concordances also support academic writing and multimodal studies. Writing researchers compare reporting verbs and lexical bundles across corpora such as the British Academic Written English (BAWE) corpus, while AntConc 4.4.2 links text or SRT transcripts to image, audio, video, or YouTube media by file stem so clicking a KWIC row plays the synchronized clip or opens an image gallery.

What is another word for “concordance”?

In corpus linguistics and humanities computing, another word for a concordance is a KWIC index, word-in-context index, verbal index, or lexical index — an exhaustive token index contrasted with a selective conceptual subject index. Outside textual indexing, in general academic prose and biostatistics, “concordance” means agreement, consensus, harmony, or inter-rater correspondence, as in Kendall’s coefficient of concordance (W) or survival C-statistics.

What does “concordant” mean in the medical field?

In clinical medicine, pathology, and genetics, “concordant” means agreeing or consistent across diagnostic tests, paired individuals, or comorbid conditions — opposite to “discordant” — and is unrelated to corpus concordancers. In breast biopsy diagnostics, Grabenstetter et al. (2020) define radiologic-pathologic concordance in core needle biopsies: results are concordant when histology explains mammographic or MRI findings, whereas discordant findings suggest sampling error and warrant repeat biopsy or excision.

In medical genetics, twins are concordant when both share a molecular defect or clinical trait and discordant when only one is affected; Perez-Nanclares et al. (2026) report monozygotic twins with concordant blood GNAS methylation defects yet discordant clinical pseudohypoparathyroidism type 1B phenotypes from tissue mosaicism. Medicine also calls chronic illnesses with shared pathophysiology concordant conditions and shared patient-prescriber agreement medication concordance.

How to install or access a concordancer

Choosing between local desktop software and an online concordancer depends on data-governance rules, corpus scale, and whether you need custom files or reference corpora. Obtain installers or accounts only from each tool’s official site.

Installing AntConc on Windows, macOS, and Linux

AntConc (developed by Laurence Anthony at Waseda University; version 4.4.2, documented July 20, 2026) is freeware desktop software built with Python, Qt, PyInstaller, and SQLite. Per the official AntConc FAQ at laurenceanthony.net, mobile devices (iOS, Android, iPad) and Chromebooks are not supported:

  1. Windows (Installer): Download the Windows Installer (4.4.2) from laurenceanthony.net, double-click the package, and complete setup to launch AntConc from the Start menu.
  2. Windows (Portable): When institutional machines restrict installation or for USB drives, download the Windows Portable ZIP, unzip it into a writable folder, and double-click AntConc.exe.
  3. macOS: Download the macOS disk image (.dmg), mount it, drag AntConc to Applications, and open it from Applications or Launchpad.
  4. Linux: Download the Flatpak bundle from laurenceanthony.net, run flatpak install bundle-file, and launch via your desktop menu or flatpak run org.antconc.AntConc.

Accessing an online concordancer in Sketch Engine and English-Corpora.org

Browser-based concordancers run server-side queries without local indexing hardware:

  • Sketch Engine (sketchengine.eu): Operated by Lexical Computing, Sketch Engine provides web access (via university login or registration on sketchengine.eu) to multi-billion-word preloaded corpora and user-uploaded corpora with automatic tokenization, lemmatization, and POS tagging. Teams needing local server control can install NoSketch Engine from sketchengine.eu, an open-source software build retaining CQL concordancing without preloaded corpora or Word Sketches.
  • English-Corpora.org: Maintained by Mark Davies, English-Corpora.org offers web access to 17 structured English corpora — including COCA, COHA, GloWbE, NOW, and the 14-billion-word iWeb corpus — with genre, dialect, and historical period comparisons.
  • AntConc online library: AntConc 4.4.2 downloads pre-built SQLite corpora (Brown, LOB, AmE06, BE06, BAWE, BASE) via File → Open Corpus Manager… → Corpus Library when Show online corpora is checked.

How to run a KWIC concordance search step by step

Concordancing follows five stages across desktop and web tools: load an indexed corpus, set token constraints, generate KWIC lines, apply positional sorting, and verify hits in full documents. Menu names and commands below match current official documentation.

Running a KWIC search and positional sort in AntConc

AntConc 4.4.2 queries SQLite (.db) corpus databases created via Quick Corpus or the Corpus Manager:

  1. Load the target corpus: Select File → Open File(s) as ‘Quick Corpus’… (Ctrl+N / Command+N) to build quick_corpus_1.db, or open File → Open Corpus Manager… (Ctrl+O / Command+O) to assign a library corpus with Tar or build a tagged corpus in Corpus Builder (Files).
  2. Enter the KWIC query: Open the KWIC tab (Ctrl+1 / Command+1) and type a word, phrase, or wildcard query (teach*, student|pupil) in Search Query.
  3. Select matching mode: Check Words for whole tokens, Case for case sensitivity, Regex for token-level patterns, or Full Regex for document-level cross-token spans (when enabled at build time).
  4. Set window and sample controls: Set Context Size (for example, 10 token(s)) and Results Set (All hits or random subset), then click Start or press Enter.
  5. Apply positional sorting: In Sort Options, choose Sort to right, Sort to left, or up to three sort keys (1R, 2R, 3R or 1L, 2L) ordered by Order by value or Order by freq.
  6. Filter rows, verify full text, and save: Press Delete to drop selected rows (Shift+Delete to keep only selected rows), double-click a row to open File View, and export via File → Save Current Tab Results… (Ctrl+S / Command+S).
  7. Cross-check statistical collocates: Open Collocate, set Window Span (From 5L to To 5R), Min. Freq, and Min. Range, and click Start; double-click any collocate row to jump back to filtered KWIC hits.

Running concordances and collocations in Sketch Engine and English-Corpora.org

In Sketch Engine, select a corpus, open Concordance, and run a basic query or an advanced Corpus Query Language (CQL) expression such as [tag=”V.*”] [lemma=”bread”]:

  1. Shuffle or rank sentences: Hits open in KWIC view (red node) in corpus order. Click Random sample or Shuffle before coding to avoid file-order bias, or switch to Sentence view and click GDEX to rank clear sentences first.
  2. Sort, count, and export: Use Sort to group context tokens, Frequency to tabulate forms, tags, or metadata text types, and download up to 1,000 lines on preloaded corpora; use Word Sketch for fast grammatical collocations.
  3. Query English-Corpora.org: Select KWIC to sort POS-colored lines up to three words left and right, or select Collocates, set a node word, POS filter, and ±4 token window, and rank by frequency with a Mutual Information cutoff (MIN MI 3.5 or 5.0).

How to read the output

Accurate interpretation separates display artifacts from genuine corpus-wide distributions across both KWIC tables and statistical collocate rankings.

Reading Key Word in Context lines, positional offsets, and KPF scores

Every KWIC display centers the matched node at position 0 (Hit or C in AntConc, Term in Voyant Tools), indexing left tokens outward as 1L, 2L, 3L and right tokens as 1R, 2R, 3R. Sorting on 1L aligns immediately preceding modifiers or auxiliaries regardless of sentence length.

Always read raw Total Hits alongside dispersion across files (Range in word/collocate tables, or Total Files With Hits and Juilland’s D in AntConc’s Plot tool) so dense repetition inside a single document is not mistaken for general usage. In AntConc 4.4.2, the KPF (KWIC Pattern Frequency) column summarizes recurring multi-word sequences as Total Score: Count or Total Score: Count (Group Size), collapsing unique one-off rows into brackets when Group singletons is enabled.

Interpreting collocate statistics with a worked illustrative example

Collocation tables — paralleling term-scoring methods in text mining pipelines — compare observed co-occurrence within a window (O11) against expected chance co-occurrence (E11) across N corpus tokens. Using the Evert (2004) contingency notation documented in AntConc 4.4.2 (pp. 40–42), with node marginal R1 and collocate marginal C1:

  • Mutual Information (MI): MI = log2(O11 / E11) quantifies logarithmic effect size above chance, but inflates rare low-frequency words when E11 is tiny.
  • LogDice: LogDice = 14 + log2(2 × O11 / (R1 + C1)) omits N and E11 entirely. Sketch Engine uses logDice (maximum 14) as its core typicality score because values remain comparable across multi-billion-word corpora without rare-word distortion.
  • Log-Likelihood (4-term G2) and Z-score: Hypothesis tests of statistical significance; ranking by Log-Likelihood alone surfaces ultra-frequent function words (the, of, and) unless paired with an effect-size filter or stoplist.

Worked illustrative composite example: In an illustrative composite corpus of N = 1,000,000 tokens with node count R1 = 500, collocate count C1 = 400, and co-occurrence O11 = 40, expected chance count is E11 = (500 × 400) / 1,000,000 = 0.20. AntConc 4.4.2’s formulas yield MI = log2(40 / 0.20) = 7.64, Dice = 80 / 900 = 0.0889, LogDice = 14 + log2(80 / 900) = 10.51, and z = (40 − 0.20) / √0.20 = 89.00. In a 10-billion-word corpus with identical counts, E11 drops to 0.00002 and MI jumps to 20.93, while LogDice stays 10.51. Report LogDice with minimum frequency/range cutoffs (such as Min. Freq ≥ 5, Min. Range ≥ 3) or pair raw frequency with MI ≥ 3.5, then inspect directional counts (FreqL, FreqR) and KWIC lines.

Troubleshooting a concordancer

Common concordancer problems stem from file encoding mismatches, build-time token definitions, or unindexed regex scans. Official AntConc 4.4.2, Sketch Engine, and #LancsBox X documentation specify the following fixes:

  • UTF-8 decode failures: UnicodeDecodeError: ‘utf-8’ codec can’t decode byte… in AntConc signals legacy encoding (Windows-1252). Resave files as UTF-8 or set matching File Encoding in Corpus Builder (Files).
  • Punctuation and wildcard mismatches: AntConc treats ? as a single-character wildcard and omits punctuation from default letter tokens. Add punctuation under Show Token Definition Settings (User-Defined Characters) at build time and escape wildcards; in #LancsBox X (v6.0), wrap tagged punctuation in XML c elements and query via /punc=”…”/.
  • Unavailable Full Regex or slow CQL queries: AntConc’s Full Regex requires enabling Store full text for Full Regex (KWIC/Plot/File) at build time, disables Words and Adv Search, and scans unindexed full text. In Sketch Engine, unanchored CQL regex queries on multi-billion-word corpora can run 10–15 minutes; use Word Sketch or anchor an exact lemma.
  • Grayed-out POS or lemma views: AntConc’s Type+POS and Headword views under Settings → Global Settings → Tags require simple_word_pos_headword_indexer or simple_word_bibertag_indexer at build time.
  • Single-file clustering on page one: Concordances default to file order; click Random sample or Shuffle in Sketch Engine or pick a random subset in AntConc’s Results Set before coding.

Free alternatives to desktop and commercial concordancers

Researchers needing collocation network graphs, self-hosted web concordancing, browser widgets, or scriptable R and Python code can use five documented freeware and open-source packages compared below. For algebraic formulas and corpus-size behaviors across eight concordance and collocation statistics, see the downloadable data table below this guide.

Tool and Version License and Distribution Execution Environment Supported Query Syntax Context Window and Output Format
AntConc (v4.4.2) Freeware desktop release (Waseda University) Windows (Installer or Portable), macOS, Linux Flatpak; SQLite backend Simple strings, wildcards, token Regex, Full Regex, Search Query List, SQL metadata joins Configurable token window; 3-level positional sort (1L–3L, 1R–3R), KPF scores, TSV/DB export, media-linked File View
#LancsBox X (v6.0.2) Creative Commons BY-NC-ND; free for non-commercial use (Lancaster University) Cross-platform desktop installer (install4j) for million- and billion-word corpora Words, wildcards, Smart queries (NOUN, EMOTION), CQL token/CLAWS7 POS/USAS semantic tags, XML {within} and {containing} KWIC grid, GraphColl collocation networks, Words, and Text modules with column sorting and index randomization
NoSketch Engine Open-source edition of Sketch Engine (Lexical Computing) Self-hosted Linux/server deployment; requires external tokenization and tagging Simple searches and Corpus Query Language (CQL) over word, lemma, tag, and structural attributes Browser KWIC and Sentence views, positional sorting, filtering, random sample, and subcorpus creation (no Word Sketch)
Voyant Tools (Contexts) Open-source web app and standalone local server (Sinclair and Rockwell) Web browser or local Java server; scriptable in Spyral JavaScript notebooks Keywords, wildcards, phrases, and stopword exclusion lists Document, reverse-sorted Left, Term, Right, and token Position columns; context slider (default 5, max 50 words/side) and row expansion (5–500 words)
quanteda (v4.5.0) and NLTK (v3.9.2) Open-source packages for R and Python Command-line, RStudio, or Jupyter notebooks for scripted workflows quanteda kwic(): glob, regex, fixed, phrase(); NLTK: case-insensitive concordance() and TokenSearcher.findall() quanteda: data frame with docname, word indices from/to, pre, keyword, post (default window = 5); NLTK: 79–80 char lines (default 25) and offsets

Frequently asked questions

What is a concordancer?

A concordancer is text-analysis software — such as AntConc, Sketch Engine, #LancsBox X, or English-Corpora.org — that searches a digital corpus for a target word, lemma, phrase, or tag and displays every hit centered in a Key Word in Context (KWIC) layout with positional sorting and collocation metrics.

What is a concordance used for?

Researchers use a concordance to inspect authentic word and phrase usage in context, uncover recurring collocations and grammatical frames via left- and right-context sorting, select dictionary examples, compare genres or periods, and verify quantitative counts against source passages.

What is another word for “concordance”?

In corpus linguistics and digital humanities, close equivalents for a concordance are KWIC index, word-in-context index, verbal index, and lexical index. In general and statistical writing outside text indexing, “concordance” means agreement, consensus, harmony, or inter-rater correspondence.

What does “concordant” mean in the medical field?

In medicine and genetics, “concordant” means matching or consistent — opposite to “discordant” — rather than referring to corpus software. Key examples include radiologic-pathologic concordance (biopsy pathology matching imaging), twin concordance (both twins sharing a trait or disorder), and concordant chronic conditions sharing pathophysiology.

Sources

Data: Collocation Association Measures and KWIC Concordancer Metrics Across Corpus Software

Original methodological comparison of eight collocation and concordance scoring measures implemented in AntConc 4.4.2 (Evert 2004 contingency notation), Sketch Engine, and English-Corpora.org, detailing algebraic definition, sensitivity to total corpus token count, lexical frequency bias, and documented operational parameters.

Period covered: 2024/2026. Coverage: Global.

Collocation Association Measures and KWIC Concordancer Metrics Across Corpus Software
Measure or Concordance MetricFormula or Structural DefinitionMetric FamilyCorpus-Size IndependentLexical Frequency Bias and BehaviourDocumented Software Support and Thresholds
Mutual Information (MI)log2(O11 / E11)Effect sizeNo (depends on E11, which scales inversely with N)Strongly elevates rare, low-frequency or highly specialized words unless paired with a minimum frequency filterAntConc 4.4.2 Effect Size; Sketch Engine MI-score; English-Corpora.org filter (benchmark thresholds MI >= 3.0, 3.5, 6.0, or 8.5)
Cubic Mutual Information (MI3)log2((O11^3) / E11)Effect size (frequency-weighted)No (retains E11 denominator)Reduces single-occurrence noise relative to plain MI by cubing O11, though high-frequency function words can enter lower ranksAntConc 4.4.2 Collocate and Keyword Effect Size options; Sketch Engine collocation statistics
Dice Coefficient(2 * O11) / (R1 + C1)Effect size (harmonic proportion)Yes (uses only O11, R1, and C1)Bounded 0 to 1; favors balanced mutual exclusivity between node and collocate without inflating rare hapax pairsAntConc 4.4.2 Collocate and Keyword Effect Size options
LogDice14 + log2((2 * O11) / (R1 + C1))Effect size (scaled typicality)Yes (comparable across multi-billion-word corpora)Theoretical maximum 14; highlights typical content-word collocations without corpus-size distortion or function-word floodingSketch Engine primary Word Sketch and collocation metric; AntConc 4.4.2 Effect Size options
Log Ratiolog2((R2 * O11) / (R1 * O21)); O21 = 0 set to 0.5Effect size (relative risk log-odds)No (uses non-target row total R2)Quantifies binary relative concentration between target and non-target contexts; zero-cell smoothed with 0.5 in AntConcAntConc 4.4.2 Collocate and Keyword Effect Size options
Log-Likelihood (4-term G2)2 * sum of O_ij * ln(O_ij / E_ij) across 4 cellsLikelihood / significanceNo (scales linearly with sample size)Measures statistical evidence against independence; ranks ultra-high-frequency function words (the, of, and) highest unless filteredAntConc 4.4.2 default Likelihood Measure (thresholds All, p < 0.05, p < 0.01, Bonferroni); Sketch Engine log-likelihood
Z-Score(O11 - E11) / sqrt(E11)Standardized deviationNo (depends on E11)Over-weights rare co-occurrences when expected count E11 is near zero under normality approximationsAntConc 4.4.2 Collocate and Keyword Effect Size options
KWIC Pattern Frequency (KPF)Total Score: Count (or Count with Group Size)Positional sequence groupingYes (within active concordance hit set)Groups identical multi-token left/right sorted context patterns and optionally collapses singleton rows in bracketsAntConc 4.4.2 KWIC tool column alongside 3-level positional sort (1L-3L, 1R-3R)

Sources

Compiled by CASRAI from the sources above. Free to reuse under CC BY 4.0 with attribution.

Follow CASRAI

Research-administration guidance, standards updates and independent tool reviews.

Ask CASRAI · full access

Ask about Concordancer Software in Corpus Research: KWIC Sorting, Collocates, and Tool Workflows

Full access: large monthly usage, up to 10 source passages behind each answer, and MCP and API access for Claude Code, Codex and other CLIs. Cancel any time.

An AI assistant for research: funder rules, compliance, methods and publishing. It links the sources behind its answers and labels answers that come from a web search.

Answers draw on CASRAI's guides and dictionary plus the federal and funder documents we index: Federal Register, Grants.gov, Regulations.gov and UKRI.

Works on this site and inside Claude, Cursor and the AI tools you already use.

Everything CASRAI publishes — this page, the dictionary, the guides and the news — stays open to read, with no account and no card.

Referenced across the research world

University of Cambridge logoColumbia University logoCrossref logoUniversity of Edinburgh logoHarvard University logoUniversity of Oxford logoPrinceton University logoStanford School of Medicine logoUniversity College London logoORCID logoUniversity of Cambridge logoColumbia University logoCrossref logoUniversity of Edinburgh logoHarvard University logoUniversity of Oxford logoPrinceton University logoStanford School of Medicine logoUniversity College London logoORCID logo
  • University of Cambridge logo
  • Columbia University logo
  • Crossref logo
  • University of Edinburgh logo
  • Harvard University logo
  • University of Oxford logo
  • Princeton University logo
  • Stanford School of Medicine logo
  • University College London logo
  • ORCID logo

View CASRAI adoption →