cdimascio / py-readability-metrics

📗 Score text readability using a number of formulas: Flesch-Kincaid Grade Level, Gunning Fog, ARI, Dale Chall, SMOG, and more
https://py-readability-metrics.readthedocs.io/en/latest/
MIT License
349 stars 58 forks source link

Dale-Chall Formula #15

Closed susmoy-macgill36 closed 4 years ago

susmoy-macgill36 commented 4 years ago

Hi,

In dale_chall.py,

percent_difficult_words = stats.num_dale_chall_complex / stats.num_words * 100 if percent_difficult_words > .05

Why .05? Is it not 5? Kindly pardon me if I am wrong.

Thank you.

cdimascio commented 4 years ago

Thanks @susmoy-macgill36,You are correct. Would u mind submitting a PR with the change. Once done I'll release a new package version

susmoy-macgill36 commented 4 years ago

Okay, thank you for your response.

cdimascio commented 4 years ago

you're fix is in the v1.4.5. thanks!