1.0.2 • Published 9 months ago

jreadability v1.0.2

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

This is an unofficial implementation of jReadability's algorithm in JavaScript, adapted from @joshdavham's implementation in Python.

The Japanese text readability measurement system 'jReadability' (https://jreadability.net) is developed under Grants-in-Aid for Scientific Research (KAKEN) 25370573. Please refer to their website for more information: https://jreadability.net/

Installation

Install these:

  • This library via npm i jreadability
  • MeCab
  • UniDic dictionary (Contemporary written Japanese without model.def and matrix.def)

Example usage

import jReadability from "jreadability";
const analyzer = new jReadability.Analyzer("/path/to/unidic/dictionary/folder");

// Promise-based usage
const score = await analyzer.analyze(/* your Japanese text */);

// Synchronous usage
const score = analyzer.analyzeSync(/* your Japanese text */);
1.0.2

9 months ago

1.0.1

9 months ago

1.0.0

9 months ago