Plain language and readability ensure that documentation is clear, concise, and usable—whether it’s an API reference for a payment gateway (e.g., Stripe’s /charges endpoint) or a getting-started guide for a cloud service (e.g., AWS Lambda setup). Poor readability frustrates users, increases support tickets, and slows adoption. For example, compare: - Before (passive, jargon-heavy): "The configuration of the payment processor is to be performed by the user prior to the initiation of a transaction." - After (active, plain language): "Set up your payment processor before processing transactions."
/charges
This guide covers Flesch-Kincaid readability scores, active voice, and Global English—tools and techniques to make docs faster to read, easier to translate, and more inclusive for global audiences.
Plain Language: Writing that’s clear, concise, and free of unnecessary jargon. Goal: Users can find, understand, and act on information the first time. Example: Replace "utilize" with "use" and "in the event that" with "if."
Flesch-Kincaid Readability Tests:
Flesch-Kincaid Grade Level: Estimates U.S. school grade needed to understand the text. Target 7th–9th grade for developer docs. Tools: Hemingway Editor, Microsoft Word’s built-in checker, Readable.com.
Active Voice: The subject performs the action (e.g., "The API returns a response" vs. "A response is returned by the API"). Why? Active voice is shorter, clearer, and more direct.
Global English: Simplified English for non-native speakers. Avoid:
Complex metaphors Example: Replace "This feature is a game-changer" with "This feature improves performance."
Style Guides:
IBM’s Simplified Technical English (aerospace/defense, but useful for global audiences)
Docs-as-Code Tools for Readability:
Static Site Generators (SSGs): Hugo, Docusaurus, or Sphinx (auto-check readability with plugins).
OpenAPI/Swagger: API specs that can auto-generate docs. Use plain language in descriptions (e.g., "This endpoint creates a new user" vs. "POST /users"). Tools: Swagger UI, ReDoc, Stoplight.
Linters for Readability:
Alex: Catches insensitive/biased language (e.g., "whitelist"-"allowlist"). Example Vale rule: yaml # .vale.ini [*.md] BasedOnStyles = Microsoft, Google
yaml # .vale.ini [*.md] BasedOnStyles = Microsoft, Google
Accessibility & Readability:
Review-Spelling & Grammar-Readability Statistics-Flesch-Kincaid Grade Level
curl
markdown | Parameter | Type | Required | Description | |-----------|--------|----------|---------------------------| | `amount` | number | Yes | Payment amount in cents. |
Example: A GitHub repo with:
api-reference-original.md
api-reference-plain-language.md
Tricky Distinctions:
Swagger UI vs. ReDoc:
Behavioral Questions:
"How would you handle a developer who says your docs are too verbose?"
Take-Home Tests:
Answer: Implement docs-as-code with automated checks: - Store docs in Git alongside code. - Use OpenAPI/Swagger to auto-generate API docs from code annotations. - Add CI/CD checks (e.g., GitHub Actions) to flag mismatches between code and docs. Why? 60% of API docs are outdated (SmartBear 2023). Automation reduces drift.
Answer: Use the "Task-Based" format:1. Goal: "By the end, you’ll have a working Python script that fetches weather data."2. Prerequisites: "You’ll need Python 3.8+ and a free API key."3. Step-by-Step: Short paragraphs, code blocks, and screenshots.4. Troubleshooting: Common errors (e.g., "If you get a 403 error, check your API key.") Why? Beginners need clear goals, minimal prerequisites, and error handling.
Answer: Apply Global English principles: - Replace idioms ("bite the bullet"-"proceed despite difficulty"). - Use simple verbs ("terminate"-"end"). - Add visuals (diagrams, tables) to reduce text. - Test with Google Translate to catch ambiguous phrasing. Why? 75% of internet users are non-native English speakers (W3Techs).
code
description
Join 4M+ learners. Unlock unlimited quizzes, wrong-answer tracking, flashcards + reminders, study guides, and 1-on-1 challenges.