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>
)
Coleman Liau Index
method:
r.coleman_liau()
returns:
Result(
score, # float
grade_level # string
)
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.13.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0128214135a2c8bbf37e095b1fb24bc930fc7a9bcc801eabe172e786cda6430a |
|
MD5 | b621e638120248948ed233a25e514e80 |
|
BLAKE2b-256 | a6d2fe10cb93361e55fa27baee124e837350a612c951d1c4607a067b8d0b4a36 |
Close
Hashes for py_readability_metrics-0.13.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3488f17debb9c544a84cf8038eb36c34a852080ffe17c68f6362d4c8d8c19330 |
|
MD5 | b79b415bc1acd09f7aec057213c19bb6 |
|
BLAKE2b-256 | 53a04a9f733d420d5e182151e1051fc24c1f8004385b0feac45935fb784de36a |