Skip to content

Bennycopter/jreadability

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 */);

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published