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

FLUCALC – Fluency Calculation

Status: Current Last updated: 2026-05-27 10:42 EDT

Purpose

Detects and quantifies disfluencies in speech transcripts, producing per-speaker counts of stuttering-like disfluencies (SLD) and typical disfluencies (TD). FLUCALC is the standard tool in CLAN for analyzing fluency in stuttering research.

See the CLAN manual for the original FLUCALC command specification.

Usage

chatter-clan flucalc file.cha
chatter-clan flucalc --speaker CHI file.cha
chatter-clan flucalc --format json file.cha

Options (chatter-native)

OptionCLAN flagDescription
--speaker <CODE>+t*CHI (or +tCHI)Include speaker
--exclude-speaker <CODE>-t*CHI (or -tCHI)Exclude speaker
--gem <LABEL>+g"label"Restrict to gem segment
--range <START-END>+z25-125Utterance range
--id-filter <PATTERN>+t@ID="..."Filter by @ID pattern
--include-retracings+r6Include retraced words in counting
--format <FMT>–Output format: clan (default), text, json, csv

CLAN +-flag coverage audit

Authoritative enumeration of every CLAN flucalc flag. Sources:

  • OSX-CLAN/src/clan/flucalc.cpp: usage() and getflag().
  • OSX-CLAN/src/clan/cutt.cpp: mainusage() FLUCALC branches.
  • crates/talkbank-clan/src/clan_args.rs: chatter’s rewriter.
  • crates/talkbank-cli/src/cli/args/clan_commands.rs::Flucalc plus clan_common.rs::CommonAnalysisArgs.

(Status legend: same as FREQ.)

FLUCALC-specific +-flags (from flucalc.cpp::usage)

CLAN flagMeaningChatterStatusNotes
+aGet pause durations from %wor tier,Missingchatter ignores %wor for pauses.
+bWord-mode analyses (default: syllable mode),Missingchatter is word-mode only.
+b1Word mode with repetition/retraces,Missing
+cCompute pause duration from (2.4) notation,MissingInline pause-time parsing.
+c1Add phonological fragment to SLD instead of TD,MissingCounting policy switch.
+c5With +p: reverse source/target tier priority,Missing
+dNSample size N (s, w), e.g. +d100s for 100 syllables,Rewriter only--display-mode N; no consuming clap field.
+e1..+e5Side-effect file creation (syllable counts, fluent utterances, disfluencies),Missing
+uCompute output per utterancepartial via --per-filePartialCLAN (flucalc.cpp:778-781, isUttList = TRUE) enables per-utterance output. chatter has only --per-file (file granularity), not per-utterance. Per-FLUCALC rewriter arm in clan_args.rs returns None for honest rejection: clap reports the literal +u argument rather than the global +u arm silently dropping it (which would let chatter run with default aggregated output while the user expected per-utterance results).
+pS / +p@FSearch word S and match POS,Missing
+g / -g / +gSGem semantics (same overload as EVAL)--gem (S form only)Partial
+n / -nGem termination semantics,Missing

Audit summary

BucketCount
Done4
Partial2
Rewriter only5
Missing13

FLUCALC’s largest gap is the syllable-vs-word mode (+b vs default syllable). chatter operates exclusively in word mode, which produces different counts from CLAN’s default. This is a silent wrong for researchers expecting CLAN-default syllable-mode output. Filed as a Phase 1.7 high-priority follow-up.

Disfluency Categories

Stuttering-Like Disfluencies (SLD)

TypeCHAT notationExampleStatus
Prolongation: within wordwa:ntImplemented
Broken word^ notationbase^ballImplemented
Whole-word repetitionConsecutive identical wordsI I wantImplemented
Part-word repetition––Partial
Block––Partial

Typical Disfluencies (TD)

TypeCHAT notationExampleStatus
Phrase repetition[/]I want [/] I wantImplemented
Revision[//]I want [//] I needImplemented
Filled pause&- prefix&-uh, &-umImplemented
Phonological fragment&+ prefix&+frImplemented

Output measures

All counts are reported as:

  • Raw values: Total count per disfluency type
  • Percentages: Per 100 words

Algorithm

  1. For each utterance, walk the AST content nodes
  2. Identify disfluency markers:
    • Retrace groups ([/], [//]) from parsed AST annotations
    • Fillers and fragments from word category annotations
    • Prolongations and broken words from within-word notation
    • Whole-word repetitions from consecutive identical countable words
  3. Accumulate per-speaker counts by disfluency category
  4. Compute percentages relative to total words (or syllables)

Differences from CLAN

Detection method

Some categories (specifically [/] and [//] retrace markers) are currently counted via substring matching on the serialized CHAT text rather than fully through the parsed AST. This produces equivalent results but is a known area for future improvement.

Part-word repetitions and blocks

Counted via CHAT notation markers rather than acoustic analysis. Full detection of these categories requires audio-linked analysis that is beyond the scope of text-based transcript processing.

Output formats

Supports text, JSON, and CSV. CLAN produces text only.

Golden test parity

Verified against CLAN C binary output.