Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 638 Bytes

README.md

File metadata and controls

32 lines (22 loc) · 638 Bytes

Juman++ node wrapper

This package aims to be a minimal wrapper around juman++ with no formatting provided.

API

new Jumanpp(command)

Where command is an optional argument containing the path to juman++ binary, default is 'jumanpp'

Jumanpp.query(sentence)

Expects a string, throws an error on empty argument. Returns a promise.

Jumanpp.close()

Signifies an end of input and terminates the juman++ process

Usage example

  const jumanpp = new Jumanpp();

  const one = await jumanpp.query('玄関で愛を待ち惚け');

  jumanpp.close();