Skip to main content

Textatistic is a Python package to calculate the Flesch Reading Ease, Flesch-Kincaid, Gunning Fog, Simple Measure of Gobbledygook (SMOG) and Dale-Chall readability indices. Textatistic also contains functions to count the number of sentences, characters, syllables, words, words with three or more syllables and words on an expanded Dale-Chall list of easy words.

Installation

$ pip install textatistic

Documentation

Detailed documentation available at erinhengel.com.

Quickstart

>>> from textatistic import Textatistic

# Generate object of readability statistics.
>>> text = 'There was a king with a large jaw. There was a queen with a plain face.'
>>> s = Textatistic(text)

# Return sentence count.
>>> s.sent_count
2

# Return Flesch Reading Ease score.
>>> s.flesch_score
114.11500000000001

# Return dictionary of character/word/syllable counts.
>>> s.counts
...

# Return dictionary of readability scores.
>>> s.scores
...

# Return dictionary of all attribute values.
>>> s.dict()
...

Table of attributes

char_count

number of non-space characters.

notdalechall_count

number of words not on Dale-Chall list of words understood by 80% of 4th graders.

polysyblword_count

number of words with three or more syllables.

sent_count

number of sentences.

sybl_count

number of syllables.

word_count

number of words.

dalechall_score

Dale-Chall score.

flesch_score

Flesch Reading Ease score.

fleschkincaid_score

Flesch-Kincaid score.

gunningfog_score

Gunning Fog score.

smog_score

SMOG score.

Metadata

Release files for textatistic 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for textatistic 0.0.1
File Size Uploaded
textatistic-0.0.1.tar.gz 29.9 kB Details

Release files / textatistic-0.0.1.tar.gz

Download URL textatistic-0.0.1.tar.gz
Size 29.9 kB
Tags Source
SHA-256 checksum
How to use checksums
281dec67821ab43833e0f7ed846b7931ef4f8a88efc18930339481f5a9e4d62f
BLAKE2b-256 checksum
How to use checksums
73f874dade1df8998ce9a42cba21b3cdf284f3f273e7e22fbcab27955d213e61
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.0.1 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page