| … | … | @@ -22,14 +22,20 @@ const LANGUAGE_FILLER_WORDS: Readonly<Record<string, readonly string[]>> = { | |
| 31 | 35 | let filtered = text; | |
| 36 | + | const protectedWord = correctionCue?.trim().toLowerCase(); | |
| 32 | 37 | for (const word of words) { | |
| 38 | + | if (word === protectedWord) continue; | |
🟠High speech/fillerWords.ts:38
With correctionCue set to "uh no", this function turns "Make it red, uh no, blue." into "Make it red, no, blue.", so downstream correction loses the configured cue. The equality check only skips a filler when it equals the entire cue; protect complete cue occurrences before removing fillers.
No longer relevant as of 79efddb3590c102ffc44e1deb76b3fd6f8bccca5