fix(input,core): fix live punctuation typo triggers, expected insert cleanup, and ngram scan

This commit is contained in:
Yun Chan 2026-11-14 15:14:53 +09:00
parent a37dd63909
commit 2a009e421a
8 changed files with 640 additions and 53 deletions

View file

@ -734,4 +734,27 @@ describe('Araso 급 한/영 자동 전환 · 합성어 · 잔류 Shift · URL
expect(applyAll('윈도우ㅐㄴ ')).toBe('윈도우OS ')
expect(applyAll('새ㅁㅔㅑ를 ')).toBe('새API를 ')
})
it('detectTypos_한글말줄임표뒤영타_한글로복원하고코드전개와파일확장자는보존한다', () => {
expect(applyAll('상황 잘 지켜보는중...dbrlgkrhdlTwlsdksgwl?')).toBe(
'상황 잘 지켜보는중...유기하고있진않지?'
)
expect(applyAll('어떻게해..dlrj?')).toBe('어떻게해..이거?')
expect(applyAll('파일.tsx?raw')).toBe('파일.tsx?raw')
expect(applyAll('...props')).toBe('...props')
expect(applyAll('return ...opts')).toBe('return ...opts')
})
it('detectTypos_URL쿼리스트링뒤영타_변환하지않는다', () => {
expect(applyAll('상황 잘 지켜보는중?dbrlgkrhdlTwlsdksgwl?')).toBe(
'상황 잘 지켜보는중?유기하고있진않지?'
)
expect(applyAll('example.com?dbrlgkrhdlTwlsdksgwl')).toBe('example.com?dbrlgkrhdlTwlsdksgwl')
expect(applyAll('site.kr?dbrlgkrhdlTwlsdksgwl')).toBe('site.kr?dbrlgkrhdlTwlsdksgwl')
})
it('detectTypos_물결표및전각부호경계오타_영문과한글모두복원한다', () => {
expect(applyAll('상황 잘 지켜보는중~ㅗ디ㅣㅐ~')).toBe('상황 잘 지켜보는중~hello~')
expect(applyAll('지금 어디야?dbrlgkrhdlTwlsdksgwl?')).toBe('지금 어디야?유기하고있진않지?')
})
})