Calculate readability scores. e.g. Flesch, Flesch-Kincaid, and more
Project description
py-readability-metrics
Score text difficulty usings a variety of readability metrics 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())
print(r.gunning_fog())
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>
)
Gunning Fog
method:
r.gunning_fog()
returns:
Result(
score, # float
grade_level, # 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.12.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f38d2d649a35a4baeeeaa8930d57424480c82cb8e847d49ddf92186446717b60 |
|
MD5 | 2117ed50c12b48e2c64a3911bbd0e443 |
|
BLAKE2b-256 | a4d5402d1b13e20641b583dee68443ace609addbe7382d35ad81eb1531078e03 |
Close
Hashes for py_readability_metrics-0.12.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 42c3882f29aa6af202d39bca91311af36b3b04c9b7e226611e612ae16a28539f |
|
MD5 | 59546d86b7dafc1bf8b532e87f629f51 |
|
BLAKE2b-256 | dd2f85a2c79385b9dbe17b03082da19b20f967f67a312e320b37fb4cc969c3f6 |