English Readability Scorer avatar

English Readability Scorer

Pricing

$0.01 / actor start

Go to Apify Store
English Readability Scorer

English Readability Scorer

Pricing

$0.01 / actor start

Rating

0.0

(0)

Developer

Eichan Jolly

Eichan Jolly

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

11 days ago

Last modified

Categories

Features

Limited permissions

Share

A small, deterministic English text readability estimator. It counts words and sentences, estimates syllables from spelling, and applies three published readability formulas. It does not use machine learning, LLMs, APIs, browsing, or third-party Python packages.

Who this is for

Editors, documentation writers, content operations teams, and anyone who wants a quick approximate difficulty check for an English passage. It is not a substitute for a reader study or editorial review.

What it does

Given one block of English text, writes exactly one JSON Dataset item. The output always includes charactersAnalyzed, wordCount, sentenceCount, syllableCount, fleschReadingEase, fleschKincaidGrade, gunningFog, averageWordsPerSentence, method, level, and note.

  • fleschReadingEase: higher is conventionally easier; formula 206.835 − 1.015 × words/sentences − 84.6 × syllables/words.
  • fleschKincaidGrade: approximate US grade-level formula 0.39 × words/sentences + 11.8 × syllables/words − 15.59.
  • gunningFog: approximate grade-based index 0.4 × (words/sentences + 100 × complexWords/words); complex means 3+ estimated syllables here, without dictionary-based proper-noun or inflection exclusions.
  • averageWordsPerSentence: wordCount / sentenceCount.

Computed scores are rounded to three decimals. Output label level is a simple interpretation of unrounded Flesch Reading Ease, with these exact thresholds:

LabelFlesch Reading Ease
easy≥ 70
standard≥ 50 and < 70
difficult< 50
insufficientfewer than 30 recognized English words or fewer than 3 recognized sentences

When insufficient, the four computed numeric metrics are null and the note describes the minimum sample requirement. The counts still appear. In particular, a short passage will never receive a confident score or level.

Tiny working example

Input (input_schema.json includes this same text as the prefill):

{
"text": "A clear report helps readers understand the facts. Short sentences often make a message easier to follow. Writers can choose common words and explain each new idea with a simple example. These choices may help people read the report without stopping to look up every unfamiliar word."
}

One Dataset item (generated using the bundled tests/run_smoke.py):

{
"charactersAnalyzed": 283,
"wordCount": 47,
"sentenceCount": 4,
"syllableCount": 74,
"fleschReadingEase": 61.709,
"fleschKincaidGrade": 7.571,
"gunningFog": 8.955,
"averageWordsPerSentence": 11.75,
"method": "deterministic readability formulas",
"level": "standard",
"note": "Approximate English spelling-based scores; not a comprehension assessment."
}

Method and limitations

  1. Words are ASCII English letter sequences with an optional apostrophe; numbers, emoji, other writing systems, and most technical tokens are ignored. Hyphens split words.
  2. Sentence boundaries are punctuation (., !, ?) followed by whitespace, or a newline. Abbreviations, headings, punctuation without spaces, and unusual formatting may be miscounted.
  3. Syllables are estimated by counting spelling vowel groups and applying a couple of simple ending rules; irregular pronunciation, acronyms, names, dialect differences, and unfamiliar words can distort the results.
  4. These formulas were developed for English prose; do not use on non-English text or treat the grade values as measured learning outcomes. Highly specialized vocabulary can be misrepresented.
  5. Does not provide human-level reading assessment, semantic understanding, editorial judgment, or professional evaluation.
  6. Text limit: 50,000 characters. Empty or wrong-type input produces a plain-language error and nonzero exit, without a traceback.

Run locally

Requires Python 3.12+; no pip install required. From this Actor directory:

$ACTOR_INPUT_JSON='{"text":"This is too short."}' python src/main.py

The short input produces an insufficient item. To run the full prefill and save a reproducible result, run python tests/run_smoke.py; the script launches python src/main.py as a subprocess using tests/sample_input.json as ACTOR_INPUT_JSON, then checks the Dataset item. Local output is stored as storage/datasets/default/000000001.json by default, or at $APIFY_LOCAL_STORAGE_DIR/datasets/default if set. Alternatively, place JSON at storage/key_value_stores/default/INPUT.json and call python src/main.py.

On Apify, when APIFY_IS_AT_HOME is set, the Actor fetches the run's INPUT record from the default key-value store through Apify's REST API, using the platform-provided APIFY_TOKEN, then appends records to the default Dataset via the REST API. No SDK or user LLM key is required. Local JSON overrides via ACTOR_INPUT_JSON are for development and testing.

Store and suggested pricing (not configured)

  • Store category: AI.
  • Suggested pricing: $0.005 per completed run, including insufficient-text results. This is a suggestion only; no billing is configured and the Actor is not published.

Verification

Run python -m unittest discover -s tests -v and python tests/run_smoke.py from this directory. The tests/ folder includes tests, valid smoke input, actual terminal output, the produced Dataset JSON, and reproducibility notes. Docker builds and Apify cloud deployment are not claimed as verified.