Kuromoji morphological analyzer for kuroshiro.
Switch branches/tags
Nothing to show
Clone or download
hexenq Merge pull request #4 from hexenq/dev
docs: update README.md
Latest commit 809b8ff Aug 4, 2018
Type Name Latest commit message Commit time
Failed to load latest commit information.
dist 20180522 .gitkeep May 22, 2018
lib 20180522 .gitkeep May 22, 2018
src docs: update docs Aug 2, 2018
test refactor: modify variable name Jul 26, 2018
.babelrc 20180522 test May 22, 2018
.eslintrc chore: update .eslintrc May 30, 2018
.gitignore 20180522 .gitkeep May 22, 2018
.npmignore docs: update docs Aug 2, 2018
.travis.yml trival update to 0.5.0 May 23, 2018
CHANGELOG.md docs: update url in CHANGELOG Aug 5, 2018
LICENSE first commit Mar 9, 2018
README.md docs: update README.md Aug 5, 2018
package.json build: modify the umd filename Aug 5, 2018



Build Status Coverage Status npm version

Package kuroshiro-analyzer-kuromoji
Description Kuromoji morphological analyzer for kuroshiro.
Compatibility Node ✓ (>=6)


$ npm install kuroshiro-analyzer-kuromoji

For legacy frontend workflows, you could include dist/kuroshiro-analyzer-kuromoji.min.js in your page and the exported name is KuromojiAnalyzer. (you may first build it from source with npm run build after npm install)

Usage with kuroshiro

Configure analyzer

This analyzer utilizes kuromoji.js.

You could specify the path of your dictionary files with dictPath param.

import KuromojiAnalyzer from "kuroshiro-analyzer-kuromoji";

const analyzer = new KuromojiAnalyzer();

await kuroshiro.init(analyzer);

Initialization Parameters


const analyzer = new KuromojiAnalyzer({
    dictPath: "url/to/dictionary_files"
  • dictPath: Optional Path of the dictionary files