Status: Current Last updated: 2026-11-13
Editing and analysis support for CHAT transcription files (.cha), the format used by TalkBank, CHILDES, and related corpora for linguistic research on conversational data.
This extension is maintained as a VS Code editor and a concrete consumer of Chatter's language-server contract. CLAN analysis uses the composed chatter-clan-lsp Rust server.
| Feature | Preview |
|---|---|
| Real-time validation | ![]() |
| Intelligent completion | ![]() |
Dependency graph (%gra) |
![]() |
Errors and warnings appear as you type. The language server validates syntax, required headers, participant declarations, tier alignment, morphology format, grammar relations, timing bullets, and terminators, then shows diagnostics in the editor and Problems panel.
Hover over any word to see how it aligns across annotation layers. Click a word and all its aligned elements on %mor, %gra, %pho, and other tiers highlight simultaneously.
Full TextMate grammar plus semantic tokens from the language server. Headers, speaker codes, dependent tiers, annotations, morphology, grammar relations, pauses, and timing bullets are all distinctly colored.
Press Cmd+Shift+G to render the %gra dependency structure of the current utterance as a color-coded graph. Arcs are labeled with grammatical relations (SUBJ, OBJ, DET, MOD, ROOT, etc.) and colored by type. Export as SVG or PNG.
CLAN analysis runs in chatter-clan-lsp, a composed Rust server linking
Chatter's editor library and the talkbank-clan analysis library. Select its
binary with talkbank.lsp.binaryPath, or use a VSIX that bundles it. The server
advertises the available commands and required prompts. The core editor RPCs
remain owned by Chatter. Library differences and historical audit snapshots are tracked in the
chatter-clan parity record.
Edit @ID headers visually in a table with editable columns for all 10 pipe-delimited fields. Parsing and serialization are fully delegated to the language server.
Play audio or video linked via @Media: headers. Play at Cursor (Cmd+Shift+Enter) plays the segment nearest the cursor. Continuous Play (Cmd+Shift+/) plays from cursor to end, tracking the current utterance in the editor. Adjustable playback speed (0.25x-2x). Segment timing is loaded from the language-server alignment sidecar when available, with local bullet parsing as fallback.
Press Cmd+Shift+W to open a waveform visualization of the linked media. Colored overlays mark each timed utterance. Click anywhere on the waveform to seek both the audio and the editor cursor. Zoom in/out with toolbar buttons or mouse wheel; the view auto-scrolls during playback.
Show elicitation pictures (Cookie Theft, etc.) alongside the transcript. The extension finds images from %pic: references, same-name files, or the document directory.
Load a .cut codes file and step through uncoded utterances. Select codes from a hierarchical QuickPick to insert %cod: tiers. Cmd+Enter advances to the next uncoded utterance.
Start transcription mode from the Command Palette. Type while audio plays, then press F4 to stamp a timing bullet and advance to a new utterance line. Configurable default speaker code and rewind interval.
Step through utterances one at a time with Alt+Down / Alt+Up. Each step moves the cursor and plays the corresponding audio segment.
Filter the transcript to show only selected speakers. Choose one or more speaker codes and a filtered view opens in a side-by-side panel.
Insert 50+ CA and CHAT special characters via compose-key mode. Press Cmd+Shift+1 for Conversation Analysis symbols (intonation arrows, overlap brackets, creaky, whisper, etc.) or Cmd+Shift+2 for CHAT symbols (IPA, diacritics, glottal stop, etc.). The next keystroke inserts the corresponding Unicode character.
Context-aware suggestions for speaker codes (from @Participants), dependent tier prefixes (%mor, %gra, %pho, etc.), and postcode punctuation. Header completion triggers on @ and bracket completion triggers on [ for rapid annotation entry.
Quick fixes come from the selected server's current diagnostics and repair catalog. They require versioned workspace-edit support. Review each proposed edit before applying it. Enter missing participant identities, roles and languages explicitly.
As you type, the extension auto-indents continuation lines with tabs, keeping dependent tiers properly aligned without manual intervention.
Format to canonical CHAT style with Shift+Alt+F. Normalizes whitespace, header ordering, and tier indentation.
Press F2 on a speaker code to rename it across @Participants, @ID headers, and all main tier lines in one operation. Linked editing keeps matching speaker codes in sync as you type.
Press Cmd+T to search across all open CHAT files by speaker code and utterance content.
@Media: header values are clickable links that open the referenced media file.
Use Shift+Ctrl+Right (expand) / Shift+Ctrl+Left (shrink) to grow or shrink the selection by syntactic units, word, utterance, tier block, and transcript.
Shift+F12 on a speaker code lists every occurrence: declaration, @ID header, and all main tier lines.
Utterance counts per speaker are shown above the @Participants header (e.g., CHI: 42 utterances).
8 CHAT snippets for common structures: header block (@UTF8/header/newfile), @Participants, @ID, main tier, %mor, %gra, @Comment, and Gem (@Bg/@Eg). Type the prefix and press Tab.
F12 or Cmd+Click jumps from speaker codes to their @Participants declaration, and from %mor or %gra items to the aligned main tier word.
Hover over headers (@Participants, @ID, etc.) and timing bullets to see contextual documentation and alignment details.
Inline annotations show alignment count mismatches (e.g., [alignment: 3 main <-> 2 mor]) without modifying the file.
A tree view in the Explorer sidebar for bulk validation of entire directories. Cached results in SQLite speed up repeated runs across large corpora.
If the CLAN application is installed, open any .cha file directly in CLAN at the current cursor position via Apple Events (macOS) or Windows messaging.
| Shortcut | Action |
|---|---|
Cmd+Shift+G |
Show Dependency Graph |
Cmd+Shift+Enter |
Play Media at Cursor |
Cmd+Shift+/ |
Play Media Continuously |
Cmd+Shift+W |
Show Waveform View |
Alt+Down / Alt+Up |
Walker: Next / Previous Utterance |
F8 |
Rewind Media |
Shift+F5 |
Toggle Segment Loop |
F4 |
Stamp Timestamp Bullet (transcription mode) |
Cmd+Shift+1 |
Insert CA Special Character |
Cmd+Shift+2 |
Insert CHAT Special Character |
F2 |
Rename Speaker Code |
Shift+F12 |
Find All References |
F12 / Cmd+Click |
Go to Definition |
Cmd+. |
Quick Fix |
Shift+Alt+F |
Format Document |
Cmd+T |
Workspace Symbol Search |
On Windows/Linux, substitute Ctrl for Cmd.
Full feature parity with the macOS CLAN application is a paused long-term goal. This update maintains the editor and restores 34 library analysis commands. Most command options use library defaults. Custom scoring-rule controls, annotation tools, converter/transform workflows, complete application-workflow comparison and further native-platform qualification remain open. Real normative database comparisons and command-specific C CLAN output parity need additional evidence. The parity and remaining-work inventory records the current coverage, concrete gaps and completed qualification.
- VS Code 1.146 or later (matches
engines.vscodeinpackage.json) - A platform-specific VSIX built by this repository bundles the composed editor server under
server/. Local development can select its absolute path throughtalkbank.lsp.binaryPath.
The extension searches for talkbank-lsp on your system PATH first, then falls back to target/debug/ and target/release/ relative to the extension directory.
| Setting | Default | Description |
|---|---|---|
talkbank.bullets.display |
"dim" |
Bullet display mode: "dim", "hidden", or "normal" |
talkbank.walker.autoPlay |
true |
Auto-play media when stepping with walker |
talkbank.walker.loopCount |
1 |
Loop count per segment (0 = indefinite) |
talkbank.walker.pauseSeconds |
0 |
Pause between segments during continuous play |
talkbank.walker.walkLength |
0 |
Utterances to play continuously (0 = all) |
talkbank.media.defaultSpeed |
100 |
Playback speed percentage (25-200) |
talkbank.inlayHints.enabled |
true |
Show inline alignment mismatch hints |
talkbank.validation.severity |
"all" |
Filter diagnostics: "all", "errorsOnly", "errorsAndWarnings" |
talkbank.lsp.binaryPath |
(auto) | Override path to the talkbank-lsp binary |
All documentation lives in the TalkBank CHAT Editor book (mdBook). Entry points:
- Getting Started: install a platform VSIX and open your first file
- Editing / Navigation / Media & Transcription, feature chapters
- Developer Guide: three-layer architecture, LSP internals, adding features
- CLAN Parity and Remaining Work: current coverage, paused goal and concrete gaps
- TalkBank: home of the TalkBank project
- CHILDES: Child Language Data Exchange System
- CHAT Manual: official CHAT format specification
- Issue Tracker


