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

CHIP — Child Language Interaction Profile

Status: implementation resumed; CLAN parity is not verified Last updated: 2026-10-31

CHIP scores child/adult and self-repetition interactions over a rolling utterance window. The implementation is in crates/talkbank-clan/src/commands/chip/; its inputs and options are wired through the talkbank-clan service and chatter-clan CLI.

Options

CLAN optionMeaningStatus
+bSAssign speaker S the adult roleImplemented
+cSAssign speaker S the child roleImplemented
+gInclude substitution-class scoringImplemented
+kFold case for word-stem comparisons (default preserves case)Implemented
-n[b|c|s]Disable adult/child, child/adult, or self scoringImplemented
+qNSet rolling-window size (2–7)Implemented
+wNSet minimum source-utterance word countImplemented
+xNSet minimum repetition indexImplemented
-t%morScore words aligned with the %mor tierImplemented
-hFILEExclude words listed in a filePartial; exact and * wildcard patterns
+dNSelect CLAN display modeNot implemented

The audit rows below track option implementation separately from golden evidence. CLAN’s option definitions are in OSX-CLAN/src/clan/chip.cpp:94-103, 1340-1401.

CLAN flagMeaningChatterStatusNotes
+bSAssign adult speaker(s)--adult CODEDoneNo flag-specific golden yet
+cSAssign child speaker(s)--child CODEDoneNo flag-specific golden yet
+gEnable substitution-class scoring--substitutionDoneNo flag-specific golden yet
+kFold case when comparing stems; default preserves case--plus-kDoneCommand-specific polarity; no flag-specific golden yet
-nb / -nc / -nsDisable adult, child, or self scoring--disable-scoring b/c/sDoneNo flag-specific golden yet
+qNSet utterance window (2–7)--window NDoneNo flag-specific golden yet
+wNSet minimum source word count--min-words NDoneNo flag-specific golden yet
+xNSet minimum repetition index--min-index NDoneNo flag-specific golden yet
-t%morUse main-tier words instead of %mor--main-tierDoneNo flag-specific golden yet
-hFILEExclude words matching patterns in a file--exclusion-list FILEPartialExact and * patterns match either paired surface or %mor form; unsupported selectors are rejected
+dNSelect display mode—MissingNo CHIP display-mode consumer

Unassigned speakers are not presumed to be adults or children. Conflicting speaker-role assignments, invalid window sizes, and incompatible scoring options are rejected during request construction.

The default word source is %mor. Chatter v0.33.0 provides UD morphology, not legacy CLAN morphology. CHIP uses typed morphology values and checks main-tier/%mor alignment; a mismatch rejects the file rather than producing fabricated scores. -t%mor selects main-tier words instead. Main-tier words are treated as opaque lexical items, not parsed for morphology-like strings. The default preserves stem case; +k folds only the typed comparison key. Original stem spelling remains available for generated CHIP codes. -hFILE currently supports exact words and * wildcards only. In %mor mode it excludes a paired word when either its surface form or joined morphology stem matches; substitution mode removes all clitics of that word. Main-tier-only mode does not apply the merged-tier exclusion rule. Unsupported selector syntax is rejected rather than approximated.

Scoring and output

For each utterance, CHIP considers the nearest prior qualifying utterance from the opposite speaker role and the nearest qualifying utterance by the same speaker within the configured window. It does not limit comparisons to adjacent utterances. Default mode reports the base measure matrix; substitution mode adds substitution-class rows. Files with no scorable utterances do not receive zero-filled matrices.

The transcript echo retains main tiers and %mor tiers, then appends the generated CHIP tiers. Other dependent tiers are not echoed.

Parity status

This implementation has focused unit tests, but no current CHIP-specific golden covers the newly implemented options. The existing CHIP_MOR_GRA golden covers only bare invocation (crates/talkbank-clan/tests/clan_golden/golden_parity.rs:876-884), so it does not establish option parity. In particular, -hFILE supports only the documented subset above and +dN remains unsupported. Do not treat implementation coverage or unit tests as evidence of full CLAN parity. See book/src/divergences/per-command.md for the command-level status.