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

LOWCASE – Lowercase All Words on Main Tiers

Status: Current Last updated: 2026-05-26 09:05 EDT

Purpose

Reimplements CLAN’s lowcase command, which converts all words on main tiers to lowercase. Speaker codes, headers, and dependent tiers are preserved unchanged. The transformation recurses into annotated words, replaced words, groups, and annotated groups.

See the CLAN manual for the original command documentation.

Usage

chatter-clan lowcase file.cha

Options

This command has no command-specific flags beyond the shared -o, --output <PATH> (default: stdout). See Output Formats for the transform output flag.

CLAN +-flag coverage audit

LOWCASE is a transform. Sources: OSX-CLAN/src/clan/lowcase.cpp::usage, crates/talkbank-clan/src/transforms/lowcase.rs.

LOWCASE-specific +-flags (from lowcase.cpp::usage)

CLAN flagMeaningChatterStatusNotes
+cLowercase only the first word on a tier,MissingFirst-word-only mode.
+dDo NOT change words listed in iF dict file; lower-case the rest,MissingDictionary-guarded lowercasing, typically a proper-nouns / pronouns list.
+d1Capitalize words in dict file; leave the rest unchanged,MissingInverse mode (capitalization, not lowercasing).
+d2Ignore dict file; lower-case everything(default; no-op rewriter arm)Done (no-op per CLAN)chatter’s transforms/lowcase.rs lowercases every main-tier word unconditionally, exactly the +d2 semantic per OSX-CLAN/src/clan/lowcase.cpp case ‘d’ (isChangeToUpper = atoi(...), range 0..=2). Rewriter drops the token (clan_args.rs).
+iFDictionary file F with words to NOT lowercase,MissingPairs with +d.

Audit summary

BucketCount
Done1
Partial0
Missing4

LOWCASE’s largest gap is the proper-noun/pronoun preservation dictionary (+iF++d): CLAN ships a lowcase.cut dictionary that lists words to keep capitalised (proper nouns, the pronoun I, etc.), so the typical CLAN invocation preserves “I” and “Mary” while lowercasing the rest. chatter’s lowcase lowercases everything unconditionally, which can incorrectly merge the pronoun “I” with the article “i” (rare but real). Filed as the top Phase 1.7 follow-up for this command.

Behavior

For each utterance, the transform lowercases all word surfaces on the main tier. The transformation recurses into:

  • Plain words
  • Annotated words (inner word)
  • Replaced words (both original and replacement forms)
  • Groups (bracketed content)
  • Annotated groups (inner bracketed content)

Speaker codes, header lines, and dependent tiers are not modified.

Differences from CLAN

  • Operates on AST rather than raw text.
  • Uses the framework transform pipeline (parse -> transform -> serialize -> write).