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
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_countmethod in this library undercounts syllables.Example (correct syllable count is 11):