Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 640 Bytes

readme.md

File metadata and controls

32 lines (22 loc) · 640 Bytes

knp-bin

knp is a Japanese Dependency and Case Structure Analyzer.

Install

$ npm install --save knp-bin

Usage

const { exec } = require('child_process');
const juman = require('juman-bin');
const knp = require('knp-bin');

exec(`echo ラーメン大好き | ${juman} | ${knp}`, (err, stdout) => {
  console.log(stdout);
  // =>
  // # S-ID:1 KNP:4.17-CF1.1 DATE:2017/05/11 SCORE:-8.61202
  // ラーメン═════╗ <体言>
  //           大好き<用言:形><格解析結果:ガ/ラーメン;カラ/-;ガ2/-;ノ/->
  // EOS
});

License

MIT