textstat/textstat
:memo: python package to calculate readability statistics of a text object - paragraphs, sentences, articles. observed · 2026-08-28
Health v2 · maintenance only
71/100
- Activity 68
- Release rhythm 59
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 67
- age_days: 4459
- days_rel: 196
- days_push: 196
- n_releases_24m: 8
Adoption not part of the score
1378 stars · 185 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
Textstat is a Python library that calculates statistical features from text, including readability scores like Flesch Reading Ease, Flesch-Kincaid Grade, SMOG, and Gunning Fog. It supports multiple languages and can also be used as a standalone command-line tool.
Use cases
- score the readability of an article
- compute flesch-kincaid grade level of text
- check reading complexity of paragraphs
- count difficult words in a document
- measure smog index of content
- assess text grade level for education materials
When to choose
- you need readability or complexity metrics for English or other supported languages in Python
- you want a simple, well-maintained library with many readability formulas
- you need both a library API and a CLI for text statistics
When to avoid
- you need full NLP analysis like parsing, sentiment, or entity extraction
- you need readability formulas for languages not supported by the library
- you need deep linguistic analysis rather than surface statistics
Facets
library · maturity stable
nlp developer-tools text-editors education python cli cross-platform readability flesch-kincaid smog text-metrics grade-level natural-language-processing
4 sources
- readme: https://github.com/textstat/textstat · fetched 2026-08-28 · be718d58d8d5
- homepage: https://textstat.org · fetched 2026-08-29 · af482c227a0f
- site_page: https://docs.textstat.org · fetched 2026-08-29 · 67976619cae8
- registry_pypi: https://pypi.org/pypi/textstat/json · fetched 2026-08-29 · ed71f7cc016f
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| textstat/textstat | main | 71 |
For agents
markdown · JSON · MCP: product_card(name="textstat/textstat")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem