WDSIZE, Word Size Distribution
Status: Current Last updated: 2026-05-26 08:47 EDT
Character-length histogram for word stems from the %mor tier.
Usage
chatter-clan wdsize file.cha
chatter-clan wdsize corpus/ --speaker CHI
chatter-clan wdsize file.cha --main-tier # Use main tier words instead
chatter-clan wdsize file.cha --format json
What It Measures
WDSIZE counts the character length of each word stem extracted from the %mor tier and produces a histogram showing how many words of each length appear. By default it uses morphological stems (lemmas); with --main-tier it uses surface forms from the main tier.
Output
Per speaker:
- Character-length histogram (length → count)
- Total words measured
- Mean word size in characters
Differences from WDLEN
| Feature | WDSIZE | WDLEN |
|---|---|---|
| Default source | %mor stems | Main tier words |
| Sections | 1 (character lengths only) | 6 (chars, words/utt, turns, morphemes) |
| Morpheme counting | No | Yes (sections 5-6) |
Differences from CLAN
- Uses typed
MorTieritems withMorWord.lemmarather than raw string parsing - Supports JSON and CSV output
- Falls back to main tier words when
%moris absent
CLAN +-flag coverage audit
WDSIZE is an analysis command (banner-emitting). Sources:
OSX-CLAN/src/clan/wdsize.cpp::usage,
crates/talkbank-clan/src/commands/wdsize.rs,
crates/talkbank-cli/src/cli/args/clan_commands.rs::Wdsize.
(Status legend: same as FREQ.)
WDSIZE-specific +-flags (from wdsize.cpp::usage)
| CLAN flag | Meaning | Chatter | Status | Notes |
|---|---|---|---|---|
+bS | Add chars in S to morpheme-delimiter list | , | Missing | Same gap as WDLEN/MAXWD’s +bS. |
-bS | Remove chars from delimiter list (-b clears all) | , | Missing | |
+cS | Clause-marker delimiter S | , | Missing | Same as MLU/MLT’s +c. |
+wCN | Include only words C (>, <, =) than N characters | --length-filter <gt:N|lt:N|eq:N> | Done | Landed 2026-05-23. Per-word length gate before the histogram accumulator. The rewriter intercepts `+w[> |
--main-tier (chatter extension) | Use main-tier words instead of %mor stems | --main-tier | Chatter-only | No CLAN analog. |
Audit summary
| Bucket | Count |
|---|---|
| Done | 7 (6 general inherited as documented on FREQ + +wCN) |
| Partial | 1 |
| Rewriter only | 4 |
| Missing | 3 |
Note on a removed audit row (2026-05-26). A prior version of this page listed a
+arow claiming “Use%moronly (no fallback to main tier)” as Done-by-default. Direct inspection ofOSX-CLAN/src/clan/wdsize.cpp::getflagshows the WDSIZE option switch handles onlyb,d,s,t,w; there is nocase 'a'. The row was a phantom; the CLAN flag does not exist. Removed entirely rather than reclassified, per the discrepancy- adjudication rule (CLAN source = canonical authority for parity claims). The 2026-05-26 audit-vs-runtime sweep flagged the row as Category B and the investigation surfaced the phantom.
WDSIZE shares its morpheme-delimiter and clause-marker gaps with
WDLEN/MAXWD/MLU/MLT, the cluster of commands that all read
%mor and would benefit from a shared “morpheme-delimiter
customization” feature. Filed as a Phase 1.7 cross-cutting
follow-up.