textstat / textstat

:memo: python package to calculate readability statistics of a text object - paragraphs, sentences, articles.
https://textstat.org
MIT License
1.15k stars 165 forks source link

textstat.flesch_kincaid_grade is not working #58

Closed srikeshav closed 6 years ago

srikeshav commented 6 years ago
>>> textstat.flesch_kincaid_grade(text)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'flesch_kincaid_grade'
>>>

This is my output

alxwrd commented 6 years ago

Hi @srikeshav !

Apologies, this has been fixed but I hadn't had a chance to update textstat on PyPi.

If you run:

python -m pip install --upgrade textstat

You should get the new version I've just uploaded which fixes this issue (0.5.0).