sahava / readability-score-javascript

Simple vanilla JavaScript rewrite of the textstat.py library.
21 stars 5 forks source link

Does it work on any langage ? #1

Open gregoirepuget opened 3 years ago

gregoirepuget commented 3 years ago

Hello, Do you know if your code work in any langage, like french with accent for example. Thks Grégoire

rockerBOO commented 2 years ago

Some of the calculations are based on a vague idea of English.

https://github.com/sahava/readability-score-javascript/blob/master/readability.js#L18-L24

You could modify this to improve the scores for calculations requiring syllables in other languages. A lot of the formulas do not have syllable calculations, which work with simple word/sentences instead of word complexity.