Skip to main content

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

see contributing

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

py-readability-metrics-0.12.1.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

py_readability_metrics-0.12.1-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

Details for the file py-readability-metrics-0.12.1.tar.gz.

File metadata

  • Download URL: py-readability-metrics-0.12.1.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.6

File hashes

Hashes for py-readability-metrics-0.12.1.tar.gz
Algorithm Hash digest
SHA256 f38d2d649a35a4baeeeaa8930d57424480c82cb8e847d49ddf92186446717b60
MD5 2117ed50c12b48e2c64a3911bbd0e443
BLAKE2b-256 a4d5402d1b13e20641b583dee68443ace609addbe7382d35ad81eb1531078e03

See more details on using hashes here.

File details

Details for the file py_readability_metrics-0.12.1-py3-none-any.whl.

File metadata

  • Download URL: py_readability_metrics-0.12.1-py3-none-any.whl
  • Upload date:
  • Size: 8.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.6

File hashes

Hashes for py_readability_metrics-0.12.1-py3-none-any.whl
Algorithm Hash digest
SHA256 42c3882f29aa6af202d39bca91311af36b3b04c9b7e226611e612ae16a28539f
MD5 59546d86b7dafc1bf8b532e87f629f51
BLAKE2b-256 dd2f85a2c79385b9dbe17b03082da19b20f967f67a312e320b37fb4cc969c3f6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page