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:
parent
a21de78303
commit
72e9b7c18b
7 changed files with 116 additions and 101 deletions
|
|
@ -24,13 +24,22 @@ function learnPhrase(text: string, times: number): void {
|
|||
}
|
||||
|
||||
describe('학습한 어휘가 전사 교정에 쓰인다', () => {
|
||||
it('키보드로 배운 어절과 한 글자 다른 전사 어절을 되돌린다', () => {
|
||||
it('키보드로 배운 식별자와 한 글자 다른 전사 어절을 되돌린다', () => {
|
||||
learnPhrase('VSCode 설정 열기', 5)
|
||||
|
||||
const result = getTranscriptGlossaryService().correct('VSCod 설정 열기')
|
||||
|
||||
expect(result.text).toBe('VSCode 설정 열기')
|
||||
expect(result.corrections).toEqual([{ from: 'VSCod', to: 'VSCode', source: 'learned' }])
|
||||
})
|
||||
|
||||
it('한글 문장은 학습 어휘로 바꾸지 않는다', () => {
|
||||
learnPhrase('회의록 정리해줘', 5)
|
||||
|
||||
const result = getTranscriptGlossaryService().correct('회이록 정리해줘')
|
||||
|
||||
expect(result.text).toBe('회의록 정리해줘')
|
||||
expect(result.corrections).toEqual([{ from: '회이록', to: '회의록', source: 'learned' }])
|
||||
expect(result.text).toBe('회이록 정리해줘')
|
||||
expect(result.corrections).toEqual([])
|
||||
})
|
||||
|
||||
it('사용자 사전의 발음 표기를 정본 표기로 바꾼다', () => {
|
||||
|
|
@ -53,11 +62,11 @@ describe('학습한 어휘가 전사 교정에 쓰인다', () => {
|
|||
})
|
||||
|
||||
it('한 번만 쓴 어절은 학습 어휘로 쓰지 않는다', () => {
|
||||
learnPhrase('회의록 정리해줘', 1)
|
||||
learnPhrase('VSCode 설정 열기', 1)
|
||||
|
||||
const result = getTranscriptGlossaryService().correct('회이록 정리해줘')
|
||||
const result = getTranscriptGlossaryService().correct('VSCod 설정 열기')
|
||||
|
||||
expect(result.text).toBe('회이록 정리해줘')
|
||||
expect(result.text).toBe('VSCod 설정 열기')
|
||||
})
|
||||
|
||||
it('사전에 단어를 추가하면 캐시를 기다리지 않고 바로 반영된다', () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue