I Graded the Docs of 14 Open-Source Projects for Readability
Kubernetes concept docs read at grade 11.7. Django Ninja reads at 8.1. That gap is three and a half school years, on pages that both explain software to engineers.
I build papa, an open-source readability linter for Markdown and MDX. To see how it holds up on real docs, I ran it over 14 well-known projects. The full table lives on the leaderboard, with every folder and commit linked.
TLDR
- The grade is a US school grade, the mean of three classic formulas. Under 10 reads easily.
- Tutorials win. FastAPI, React's Learn section, and Django Ninja all land between 8 and 9.
- Concept and reference pages lose. Kubernetes has 89% of its concept pages above grade 10.
- Passive voice is not always a smell. Node's API reference has about 32 passive verbs per 100 sentences and still grades 9.6.
- Most of the work was not the scoring. It was teaching papa what in a docs file is not prose.
How the grade works
Papa grades each file with three formulas: ARI, Flesch-Kincaid, and Gunning fog. All three use words per sentence. ARI adds letters per word, Flesch-Kincaid adds syllables per word, and Gunning fog adds the share of long words. Papa takes the mean, because any single formula is easy to game.
Two quick definitions:
hard sentence grade 10 or above
very hard sentence grade 14 or above
A project's grade is the mean of its files, weighted by sentence count. Papa skips code blocks, inline code, HTML and JSX tags, MDX expressions, Hugo shortcodes, link URLs, and front matter. Only the sentences a reader reads get a grade.
The results
| Rank | Project | Grade | Files above 10 | Very hard sentences |
|---|---|---|---|---|
| 1 | Django Ninja | 8.1 | 21% | 6.8% |
| 2 | FastAPI | 8.6 | 35% | 6.8% |
| 3 | Supabase | 8.6 | 2% | 4.5% |
| 4 | React | 8.7 | 29% | 9.7% |
| 5 | Deno | 9.1 | 19% | 6.9% |
| 6 | Astro | 9.4 | 36% | 9.7% |
| 7 | Next.js | 9.5 | 33% | 7.8% |
| 8 | Node.js | 9.6 | 30% | 7.6% |
| 9 | Svelte | 9.8 | 55% | 9.8% |
| 10 | Docker Engine | 9.8 | 44% | 11.1% |
| 11 | The Rust Book | 10.0 | 55% | 15.1% |
| 12 | Vue | 10.7 | 73% | 14.9% |
| 13 | Tailwind CSS | 10.8 | 60% | 7.7% |
| 14 | Kubernetes | 11.7 | 89% | 20.8% |
Each project is one folder of its docs, not the whole site: for example, Kubernetes' content/en/docs/concepts and React's src/content/learn. The leaderboard links each one.
What the easy docs do
The top of the table is all tutorials. FastAPI's first-steps page reads at grade 7.9 across 159 sentences. It does three things over and over: one action per sentence, the reader as the subject, and the code right after the claim. "Copy that to a file main.py." "Run the live server." Short, concrete, done.
Supabase is the odd one. Only 2% of its getting-started files sit above grade 10, the best share in the set. Its pages lean on code samples and keep the prose between them to a sentence or two.
Why concept docs score hard
Kubernetes is at the bottom, and it is worth being fair about why. A concept page has to define things, and definitions pile clauses together. Here is one of its very hard sentences:
Ephemeral containers differ from other containers in that they lack guarantees for resources or execution, and they will never be automatically restarted, so they are not appropriate for building applications.
Nothing in it is wrong. It holds three facts and a conclusion in one breath, and the reader has to carry all four to the end. On its own, it grades 22.3. Split it into three sentences and the grade falls to 11.0, with nothing lost:
Ephemeral containers have no resource or execution guarantees. Kubernetes never restarts them. So do not use them to build applications.
The Rust Book sits right at grade 10 for a similar reason: it teaches ideas, not steps, and its paragraphs reason out loud. That is a style choice. The formulas just put a number on its cost.
Passive voice is a weak signal
Node's API reference has about 32 passive verbs per 100 sentences: "is emitted", "is called", "is flushed". In reference docs the subject is often the system itself, and the passive form is the natural way to say what happens. Node still grades 9.6.
So papa reports passive voice and adverbs as advice, never as errors. The only thing that fails a CI run is the grade, and only above a limit you pick.
Grading docs is mostly a parsing problem
The first run gave wrong answers, and each one was a parsing bug, not a formula bug:
- Hugo shortcodes. Kubernetes pages open with tags like
{{< feature-state >}}. Papa graded each tag as a sentence, some at grade 16. - JavaScript in MDX props. Tailwind passes CSS to components inside template literals, like
rows={[ ["animate-spin", dedent`...`] ]}. A regex cannot find where that ends. Papa now scans JavaScript strings, template literals, and comments to find the closing brace. - Odd tag names. Supabase uses
<$CodeSample />. JSX allows$in a name, and papa did not.
Each fix came with a test built from the real file. Then I graded 713 MDX files before and after, and read the five files that changed most: only code and table syntax had dropped out. Tailwind's grade moved from 11.0 to 10.8, and Supabase's from 9.5 to 8.6. If a readability score looks surprising, look at what the tool counted as prose before you look at the writing.
Try it on your docs
Papa runs in the browser with no install: paste a page into the playground. In a repository, one step in a GitHub Actions workflow annotates hard sentences on the pull request and fails above your limit:
- uses: bharadwaj-pendyala/papa@v0
with:
paths: docs/
max-grade: 10
A grade is a prompt to look at a page, not a verdict on a project. Every project in this table ships docs that people use every day. If a number here looks off, or you want your project graded, tell me in the comments.
Glossary
- Readability formula: a score from sentence length and word length that estimates the school grade needed to read a text.
- Consensus grade: papa's score, the mean of ARI, Flesch-Kincaid, and Gunning fog.
- MDX: Markdown that can hold JSX components and JavaScript expressions.
- Hugo shortcode: a
{{< name >}}tag that the Hugo site generator replaces when it builds the page.
References and further reading
- papa on GitHub: the linter, the GitHub Action, and the MCP server.
- The leaderboard: every project, folder, commit, and hardest page.
- textstat: the Python library behind the formulas.
- Automated readability index, Flesch-Kincaid, and Gunning fog: how each formula works.