2.5.1 • Published 7 months ago

@tomsd/morphoanalyzer v2.5.1

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

@tomsd/morphoanalyzer

It is a morphological analyzer for Japanese with kuromoji.

npm NPM

ci checks top language Maintenance depends on node greater or equal 18

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

// and you can feel free to pass your dict directory, too
Analyzer
  .analyze(
    "これは、テストです。",
    "path/to/dict"
  )
  .then(console.log);
2.5.1

7 months ago

2.5.0

8 months ago

2.4.1

8 months ago

2.3.2

3 years ago

2.4.0

2 years ago

2.3.0

3 years ago

2.2.1

3 years ago

2.2.0

3 years ago

2.1.1

3 years ago

2.3.1

3 years ago

2.2.2

3 years ago

2.1.0

3 years ago

2.0.2

4 years ago

2.0.1

4 years ago

2.0.0

4 years ago

1.0.0

5 years ago