Packs / accessibility-public
plain-language-check
Score text for plain language (reading grade, long sentences, long words) so content is readable for more people
Install
logicpacks pack use accessibility-public/plain-language-checkget_pack accessibility-public/plain-language-checkThe second line is the MCP tool call for the LogicPacks connector (Claude Code, Codex, Claude.ai and others). The first run of a pack someone else wrote asks for your yes.
Keys it needs (names only)
None.
Playbooks included
- Spec:
spec/SPEC.md(goal, steps, edge cases, don’ts) - Routes:
local-python - Checks: 2 in
outcome/checks.yaml - Code:
readability.py - Tools: python3
Usage, last 8 weeks
New: no recorded use yet.
Purpose (from spec/SPEC.md)
Goal
Flesch reading ease, Flesch-Kincaid grade, average sentence length, and a list of sentences over 25 words, for a text or Markdown file.
Verified by: Simple fixture scores grade < 6; dense fixture scores grade > 14 and its 40+ word sentence is listed.
Steps
- Run
python3 code/readability.py page.md. - Split flagged sentences, swap long words for short ones, use lists.
- Aim for grade 8 or lower for public content.
Edge cases
- Markdown syntax, code blocks and URLs are stripped first.
- Syllable counting is approximate (English only).
Don'ts
- Don't chase the score at the cost of accuracy; technical terms can stay if defined.