@tomsd/morphoanalyzer
v2.4.0
Published
morphological analyzer for Japanese with kuromoji
Downloads
63
Maintainers
Readme
@tomsd/morphoanalyzer
It is a morphological analyzer for Japanese with kuromoji.
Installation
npm install @tomsd/morphoanalyzer
Usage
import { Analyzer } from "@tomsd/morphoanalyzer";
Analyzer.analyze("これは、テストです。")
.then(console.log);
/*
[
{ surface: 'これ', pos: '名詞' },
{ surface: 'は', pos: '助詞' },
{ surface: '、', pos: '記号' },
{ surface: 'テスト', pos: '名詞' },
{ surface: 'です', pos: '助動詞' },
{ surface: '。', pos: '記号' }
]
*/