feat(input): upgrade graph personalization, english morphology detection, and atomic SendInput replacement

This commit is contained in:
Yun Chan 2026-10-29 08:16:26 +09:00
parent 52eef21bab
commit cd4a452148
21 changed files with 1098 additions and 110 deletions

View file

@ -51,4 +51,10 @@ describe('PersonalNgramModel', () => {
const m = model('하나 둘 셋 넷 다섯', '하나 둘 셋 넷 다섯')
expect(m.predict('하나 ', { maxWords: 2 })?.text).toBe('둘 셋')
})
it('한국어 어절의 조사가 달라져도 어간 보조 바이그램으로 다음 어절을 예측한다', () => {
const m = new PersonalNgramModel()
m.addText('회의록은 내일 공유드릴게요', 3)
expect(m.predict('이번 회의록을 ')).toMatchObject({ text: '내일 공유드릴게요', joint: 'separate' })
})
})