Skip to content

fix(transcription): repair pause-chunk seams that split one sentence - #3187

Merged
kitlangton merged 1 commit into
devfrom
fix-pause-chunk-casing
Dec 1, 2026
Merged

kitlangton merged 1 commit into
devfrom
fix-pause-chunk-casing

Conversation

@kitlangton

Copy link
Copy Markdown
Collaborator

Before

Long dictations split into pause-separated chunks, and every chunk is decoded as its own clip. Parakeet then capitalizes the chunk's first word and sometimes puts a period after its last one, so the joined sentence reads:

  • along the lines that they No longer allow it.
  • let someone know In the right place.
  • we should probably do. Onboarding audits every so often.
  • so it can easily. Audit that once in a while.
  • that I think the old library got. named like this.

After

The join between two chunks (and before the tail) repairs the seam, never the inside of a chunk:

  • along the lines that they no longer allow it.
  • let someone know in the right place.
  • we should probably do onboarding audits every so often.
  • so it can easily audit that once in a while.
  • that I think the old library got named like this.

A trailing . after a word that dangles mid-clause (to, do, got, easily, ...) is dropped, unless the next chunk plainly opens a new sentence (So let's, I think, Wait), in which case I think we should. So let's start tomorrow. keeps its period. A capitalized start is lowercased unless it is I/I'm, an acronym, camelCase, a saved or on-screen vocabulary term, or a day, month, or language. ?, !, ..., abbreviations (etc., Mr.), CJK joins, and quotes are untouched.

Verification

scripts/check transcription dictation continuation passes 1081 tests, including new synthetic seam cases; cargo clippy --locked --bin hex -- -D warnings and scripts/code-shape.py are clean.

Each sealed pause chunk is decoded as its own clip, so the offline decoder
capitalizes its first word and can end it with a period the speaker never
said. Joined back together, one sentence reads with a bogus mid-sentence
capital ("that they No longer") or a period through its middle ("probably
do. Onboarding audits").

Repair the seam only, between chunks and before the tail, never inside a
chunk: drop a trailing period after a word that dangles mid-clause (unless
the next chunk plainly opens a new sentence), then lowercase an ordinary
capitalized start. Acronyms, camelCase, "I", active vocabulary and screen
terms, and days, months, and languages keep their capital.
@kitlangton
kitlangton merged commit 6bfd8f5 into dev Dec 1, 2026
4 checks passed
@kitlangton
kitlangton deleted the fix-pause-chunk-casing branch December 1, 2026 06:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant