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>
)

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

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.13.1.tar.gz (4.7 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.13.1-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: py-readability-metrics-0.13.1.tar.gz
  • Upload date:
  • Size: 4.7 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.13.1.tar.gz
Algorithm Hash digest
SHA256 0128214135a2c8bbf37e095b1fb24bc930fc7a9bcc801eabe172e786cda6430a
MD5 b621e638120248948ed233a25e514e80
BLAKE2b-256 a6d2fe10cb93361e55fa27baee124e837350a612c951d1c4607a067b8d0b4a36

See more details on using hashes here.

File details

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

File metadata

  • Download URL: py_readability_metrics-0.13.1-py3-none-any.whl
  • Upload date:
  • Size: 8.9 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.13.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3488f17debb9c544a84cf8038eb36c34a852080ffe17c68f6362d4c8d8c19330
MD5 b79b415bc1acd09f7aec057213c19bb6
BLAKE2b-256 53a04a9f733d420d5e182151e1051fc24c1f8004385b0feac45935fb784de36a

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