
simple_english
Write plain English for humans. Keep the agent honest.
You can teach an agent plain-English prose with a skill or a
prompt. It writes clean prose in the first paragraph and slop again
by the third. This linter keeps the agent honest: it reads what the
agent wrote and names every broken rule. Send the findings back, and
the agent corrects its own text.
| Before | After |
|---|
Your API keys are rotated by the service every 90 days — you will need to update them if you get a 401; don't panic, simply re-run the setup command, which regenerates the credentials without any downtime.
|
The service rotates your API keys every 90 days. If you get a 401, update them. Do not panic. Re-run the setup command. It regenerates the credentials without any downtime.
|
The linter covers Markdown prose plus code comments in Python, Ruby,
JavaScript, TypeScript, Go, Rust, Java, C, C++, and C#. It also
reads Objective-C, Kotlin, Swift, Scala, Dart, PHP, Perl, Elixir,
Lua, R, Haskell, Zig, SQL, and bash. It reads comments in config
formats and markup as well: YAML, TOML, INI, Makefile, Dockerfile,
HTML, and XML. Findings print as plain text, JSON, or SARIF.
If your language is not on the list, open an issue.
Agent integrations
Plug the linter into your coding agent. It writes plain English on
the first pass and checks its own draft before you read the file.
| Coding agent | Ships as | Docs |
|---|
pi | npm package pi-simple-english | README |
claude-code | plugin simple-english | README |
codex | plugin simple-english | README |
cursor | plugin folder simple-english | README |
opencode | plugin simple-english | README |
vscode-copilot | config wiring | README |
If your agent is not on the list, open an issue.
The rules
- Voice: say who does the action.
- Tense: simple tenses only, no present perfect.
- Modals:
can, will, must only.
- Punctuation: no em-dashes, no semicolons.
- Contractions: write every word in full.
- Sentence shape: condition before command, no
-ing phrase after a comma.
- Word choice: about 50 substitution rules, from
leverage to in conclusion. make sure that keeps its "that".
- Code comments: same pattern rules, with line and column range.
- Counts (Markdown only): 20 words per sentence in list items, 25 in paragraphs, six sentences per paragraph at most.
The full list, with a wrong and a right example for each rule docs/RULES.md.
Install
Prerequisites
The gem needs Ruby 3.3 or newer. On a Mac, the system Ruby (2.6) is too
old. Install one, for example with Homebrew:
brew install ruby
Homebrew's Ruby is not on the PATH by default, and neither are gem
binaries. Put both in your shell profile:
echo 'export PATH="/opt/homebrew/opt/ruby/bin:$PATH"' >> ~/.zshrc
echo 'export GEM_HOME="$HOME/.gem"' >> ~/.zshrc
echo 'export PATH="$GEM_HOME/bin:$PATH"' >> ~/.zshrc
Then open a new terminal. A version manager such as mise or rbenv
works too.
Ruby gem (macOS arm64, Linux x86-64 and arm64)
gem install simple_english
Homebrew (macOS arm64)
brew install TonyCTHsu/tap/simple-english
Container
docker run --rm -v "$PWD":/work ghcr.io/tonycthsu/simple-english .
Usage
Lint files, directories, or stdin:
se README.md
se docs/ # every .md, .py, .rb, .yaml, .yml, ... under docs/
se - < notes.md # stdin (Markdown)
Lint only what changed:
git diff --name-only --diff-filter=ACM main | xargs -I{} se {}
Outputs
Pattern findings print an exclusive column range as
file:line:start-end: [RULE_ID] message. A range that crosses lines ends
with end-line:end-column. Columns count UTF-16 code units. Counting findings
identify only the paragraph's first line. JSON and SARIF output expose the same
source ranges:
se --format json docs/
se --format sarif src/ > results.sarif
Exit codes