Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

CORELEX, Core Vocabulary

Status: Current Last updated: 2026-05-22 09:47 EDT

Purpose

Identifies “core” vocabulary items that appear above a frequency threshold. Core vocabulary analysis is used in clinical assessment to evaluate whether a child’s lexicon includes expected high-frequency words.

Usage

chatter-clan corelex file.cha
chatter-clan corelex --speaker CHI file.cha
chatter-clan corelex --threshold 5 file.cha

Options (chatter-native)

OptionCLAN flagDescription
--speaker <CODE>+t*CHI (or +tCHI)Include speaker
--exclude-speaker <CODE>-t*CHI (or -tCHI)Exclude speaker
--threshold <N>,Minimum frequency for core classification (default: 3), chatter extension
--gem <LABEL>+g"label"Restrict to gem segment
--range <START-END>+z25-125Utterance range
--id-filter <PATTERN>+t@ID="..."Filter by @ID pattern
--format <FMT>–Output format: clan (default), text, json, csv

CLAN +-flag coverage audit

CORELEX-specific +-flags (from corelex.cpp::usage)

CLAN flagMeaningChatterStatusNotes
-gDo not look for GEMs,MissingDisables gem-filtering.
+lFSpecify words group name F (with .cut extension; abbreviation rules around -),MissingCORELEX’s primary input. chatter operates on the file’s own vocabulary, not a curated group list.
+n / -nGem termination semantics,Missing
+o3Combine selected speakers per filepartial via --per-file inversePartial
+wFind first-time values for words from +l group,MissingFirst-appearance tracking.

Audit summary

BucketCount
Done5
Partial1
Rewriter only4
Missing8

CORELEX’s biggest gap is +lF: CLAN’s CORELEX is fundamentally a curated-word-list comparison tool (compare a transcript’s vocabulary against a clinical or research word group). chatter’s CORELEX uses the file’s own vocabulary, which is a different question. Filed as a high-priority Phase 1.7 follow-up.

Output

  • Core word list (frequency >= threshold) sorted by frequency descending
  • Non-core word list
  • Core/total ratio and percentage
  • Per-word speaker count (how many speakers used each word)

Differences from CLAN

  • Word identification uses AST-based is_countable_word().
  • Output supports text, JSON, and CSV formats.
  • Core/non-core classification uses shared NormalizedWord for consistency.