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

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

FeatureWDSIZEWDLEN
Default source%mor stemsMain tier words
Sections1 (character lengths only)6 (chars, words/utt, turns, morphemes)
Morpheme countingNoYes (sections 5-6)

Differences from CLAN

  • Uses typed MorTier items with MorWord.lemma rather than raw string parsing
  • Supports JSON and CSV output
  • Falls back to main tier words when %mor is 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 flagMeaningChatterStatusNotes
+bSAdd chars in S to morpheme-delimiter list,MissingSame gap as WDLEN/MAXWD’s +bS.
-bSRemove chars from delimiter list (-b clears all),Missing
+cSClause-marker delimiter S,MissingSame as MLU/MLT’s +c.
+wCNInclude only words C (>, <, =) than N characters--length-filter <gt:N|lt:N|eq:N>DoneLanded 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-tierChatter-onlyNo CLAN analog.

Audit summary

BucketCount
Done7 (6 general inherited as documented on FREQ + +wCN)
Partial1
Rewriter only4
Missing3

Note on a removed audit row (2026-05-26). A prior version of this page listed a +a row claiming “Use %mor only (no fallback to main tier)” as Done-by-default. Direct inspection of OSX-CLAN/src/clan/wdsize.cpp::getflag shows the WDSIZE option switch handles only b, d, s, t, w; there is no case '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.