Migrating from CLAN
Status: Current Last updated: 2026-06-15 13:28 EDT
This guide helps users of the original CLAN C binaries transition to chatter-clan.
Command mapping
Legacy CLAN commands map directly:
| Legacy | New | Notes |
|---|---|---|
freq file.cha | chatter-clan freq file.cha | |
mlu +t*CHI file.cha | chatter-clan mlu --speaker CHI file.cha | |
combo +s"the" file.cha | chatter-clan combo --search "the" file.cha | COMBO’s +s is the boolean search (--search), not a word filter |
flo file.cha | chatter-clan flo file.cha |
Flag translation
Legacy CLAN uses +flag/-flag syntax. Both styles work, the CLI automatically translates:
| CLAN flag | Modern equivalent | Meaning |
|---|---|---|
+t*CHI | --speaker CHI | Include speaker |
-t*CHI | --exclude-speaker CHI | Exclude speaker |
+t%mor | --tier mor | Include dependent tier |
-t%gra | --exclude-tier gra | Exclude dependent tier |
+t@ID="..." | --id-filter "..." | Filter by @ID fields |
+s<word> | --include-word <word> | Include word |
-s<word> | --exclude-word <word> | Exclude word |
+g<label> | --gem <label> | Include gem |
-g<label> | --exclude-gem <label> | Exclude gem |
+z25-125 | --range 25-125 | Utterance range |
+r6 | --include-retracings | Count retraced material |
+u | (default) | Merge speakers (always on) |
+dN | --display-mode N (generic) / per-command typed flag | Display mode, partially landed. Some +dN values have specific typed flags per command (FREQ +d1/+d2/+d3/+d4, COOCCUR +d, FREQPOS +d); the rest still fall through to the placeholder. See flag-translation.md. |
+k | --plus-k (--case-sensitive alias) | Toggle command-specific case handling; defaults differ across CLAN commands. See flag-translation.md and each command’s audit page. |
+fEXT | --output-ext EXT | Output file extension, currently non-functional, see flag-translation.md |
You can continue using +t*CHI syntax for the functional flags above if you prefer; it works identically.
New capabilities
Features not available in legacy CLAN:
- JSON and CSV output:
--format jsonor--format csvfor programmatic processing - Recursive directories: pass a directory path to process all
.chafiles - Unified CLI: all commands under one
chatter-clannamespace - Structured errors: rich diagnostics with file location and context
Known differences
See Why We Diverge and Per-Command Divergences for a complete list. Key points:
- Output formatting may differ slightly (spacing, alignment)
- Some legacy CLAN C bugs are fixed rather than replicated
- Commands not ported are documented in Commands Not Ported