Calculate readability scores. e.g. Flesch, Flesch-Kincaid, and more
Project description
py-readabilitiy-metrics
Scores text usings a variety of readability scores including: Flesch-Kincaid Grade Level, Flesch Reading Ease, and more
Install
pip install py-readability-metrics
Usage
from readability import Readability
r = Readability(text)
print(r.flesch_kincaid())
print(r.flesch())
Flesch-Kincaid Grade Level
method:
r.flesch_kincaid()
returns:
Result(
score, # float
grade_level # string
)
Flesch Reading Ease
method:
r.flesch()
returns:
Result(
score, # float
ease, # string
grade_levels, # list<str>
)
Contributing
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for py-readability-metrics-0.11.8.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1c5cf67b449bf01cf21574abdfc2715f0034a3bfadb633083f3a0ef94e71be30 |
|
MD5 | 7be0d61a0d38440ad3d09212bf6b76b3 |
|
BLAKE2b-256 | 33435c44ed0190de24ddccfa4235cbf566884c850d175d92dd4cf254b01796fe |
Close
Hashes for py_readability_metrics-0.11.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 14e3f72cfebcebd026fa149a081e61e696e906e6c457978976ac958cc3eeb899 |
|
MD5 | 3602c8d474651dd2b868ff16c9d2b6d0 |
|
BLAKE2b-256 | 5a17b2ae497005070ea53ba7e675c39adf3c01f0c6e22bb43122ba091c74aa2a |