fix(meeting): stop learned vocabulary from rewriting ordinary Korean

The first cut replaced any Hangul word within one jamo of a learned term.
Measured against the real local corpus (three stored meeting transcripts)
it changed 286 of 3,005 words: 하면 became 라면, 이제 became 이게, 매일 became
메일. Most of what the app learns from typing is ordinary grammar, so
distance alone cannot separate a misheard word from a correct one.

Deterministic correction now covers only dictionary pronunciations and the
Latin identifiers the user types, preserving their casing. Korean terms
still bias recognition through the prompt hint and guide the polish
prompt. Re-measured on the same transcripts: 0 of 3,005 words changed.
Hangul-layout typing artifacts (dkssudgktpdy) are dropped from the hint.
This commit is contained in:
Yun Chan 2026-11-06 13:40:09 +09:00
parent a21de78303
commit 72e9b7c18b
7 changed files with 116 additions and 101 deletions

View file

@ -7,6 +7,7 @@
- 해결: 새 SSOT `packages/core/src/transcript-correction.ts`(글로서리·사전 변형 치환·1자모 학습 어절 교정·LLM 참고 블록) + `TranscriptGlossaryService`(사전+개인 문구 15초 캐시, 사전 변경 시 즉시 무효화, 실패 시 빈 어휘) 를 `CaptionService`(매 인식 힌트·확정 줄 교정·교열 프롬프트·`segment-updated`), `MeetingRecordingSession`/`MeetingModeService`(`meetingMode:segmentUpdated`로 회의 세션·화면 갱신, auto-polish에 용어 블록), `FileTranscriptionService`(조각별 힌트·교정), `VoiceModeService`(학습 어절 패스)에 배선.
- 교정 안전 규칙: 사용자가 실제로 쓴 어절은 절대 변경하지 않고, 후보가 동률이면 고치지 않으며, 조사는 그대로 두고 어절만 바꾼다.
- 검증: core `transcript-correction.test.ts` 16, 데스크톱 `transcript-glossary.test.ts` 9, 데스크톱 offline 전체(2788)에서 드러난 회귀 2건을 수정해 재통과, workspace typecheck·변경 파일 ESLint·`test:hygiene` GREEN. 실회의 실측은 `GAP-MTG-04`로 남김.
- **1.16.2 배포 직후 실사용 DB로 직접 검증해 결함 발견 → 1.16.3으로 수정:** `users/_local/d3ro.db`(개인 문구 1,952·이핑 표본 2,522·회의 전사 3건)에 결정적 교정을 돌리니 실제 전사 3,005어절 중 **286개가 잘못 바뀌었다**(하면→라면, 이제→이게, 매일→메일, 정보→정도, 일단→일반). 학습 어휘 대부분이 일반 명사·부사·어미라 1자모 거리로는 오인식과 정상 단어를 구분할 수 없다. 수정: 결정적 교정은 **사전 발음 변형 + 사용자가 친 라틴 식별자**만(대소문자 보존), 한글 용어는 STT 힌트·LLM 교열 참고로만. 같은 코퍼스 재측정 **0/3,005**. 실제 사이드카(`large-v3-turbo`)로 한국어 TTS 픽스처 검증: 힌트 없음 `하람로그에` → 힌트 있음 `haramlog에`, 사전 발음 등록 시 `디에로`→`D3RO`. 한영 자판 오타 산물(`dkssudgktpdy`)은 힌트에서 제외. 교훈: **"학습 데이터를 쓴다"는 기능은 실사용 코퍼스로 오탐을 먼저 재고 나서 켠다.**
## v1.9.0 — 전사 구간·프리셋 프롬프트 동기화 (2026-09-27)