@skandalabrandur/morphoanalyzer
TypeScript icon, indicating that this package has built-in type declarations

2.3.4 • Public • Published

@tomsd/morphoanalyzer

It is a morphological analyzer for Japanese with kuromoji.

npm NPM npms.io (quality) Libraries.io dependency status for latest release Maintenance

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: '記号' }
]
*/

Package Sidebar

Install

npm i @skandalabrandur/morphoanalyzer

Weekly Downloads

1

Version

2.3.4

License

MIT

Unpacked Size

17.8 MB

Total Files

20

Last publish

Collaborators

  • skandalabrandur