1.0.0 • Published 3 years ago

k-spellchecker v1.0.0

Weekly downloads
-
License
GPL-3.0-only
Repository
github
Last release
3 years ago

k-spellchecker

speller.cs.pusan.ac.kr 를 활용한 한국어 맞춤법 검사기

사용법

const {SpellCheck, Mode} = require('k-spellchecker');

const text = '안뇽하세요';
const mode = Mode.weak;

// 동기
new SpellCheck(text, mode).then(result => {
    console.log(result);
}).catch(error => {
    console.error(error)
});

// 비동기
try {
    const result = await SpellCheck(text, mode);
    console.log(result);
}
catch (e) {
    console.error(e);
}
1.0.0

3 years ago