quantgov icon indicating copy to clipboard operation
quantgov copied to clipboard

fix Flesch reading score

Open jnelson16 opened this issue 4 years ago • 1 comments

The sentence counter in textstat is not good and often returns incorrect values, which negatively affects the accuracy of the Flesch reading score, as implemented. We need to fix this in one of two ways:

  1. Use textblob sentence counter and textstat syllables counter to manually produce the Flesch scores. More code to change, but may be a safer fix. or
  2. Import the jnelson16/textstat fork of textstat, which fixes the sentence counter in textstat itself. This may be more difficult with pipenv, but less code to change.

jnelson16 avatar Jul 06 '20 18:07 jnelson16

This issue has been taken care of internally, but leaving open to correct in the quantgov library itself.

jnelson16 avatar Aug 07 '20 14:08 jnelson16