textstat icon indicating copy to clipboard operation
textstat copied to clipboard

Undercounting syllables

Open mshenton75 opened this issue 2 years ago • 0 comments

I was using this gem to calculate Flesch reading scores, and noticed some discrepancies between the scores returned here versus other online tools (like this one). In investigating, it appears the syllable_count method in this library undercounts syllables.

Example (correct syllable count is 11):

[7] pry(main)> TextStat.syllable_count("The quick brown fox jumped over the lazy dog")
=> 9

mshenton75 avatar Sep 15 '23 19:09 mshenton75