grammar-fix
Reviewed
at commit 7bae091
Fixes the grammar and spelling of each English prompt before Claude reads it, and shows what changed
0 upvotes
Log in to upvote or save- Made by
- kakha13
- Pinned commit
-
7bae0912d8f80dc0dc9fa9a9774556d2bdd42958 - What we checked
-
Sends each English prompt you type (up to 4,000 characters) to Haiku in a separate request on your own Claude Code account and replaces it with the spelling- and grammar-corrected version before Claude reads it; a list in the log shows what changed. Code blocks and pasted content are kept out of the request. It reads no files, runs no programs and only stores whether it is switched on.
Review details
Static review of the source at the pinned commit; not run. Registers session.start (registers /grammar-fix, shows a status line when off), command.run /grammar-fix (toggles the stored enabled flag via $.store) and prompt.submit. On prompt.submit it only handles prompts typed by the person (origin composer or bridge), not starting with /, ! or #, with Latin letters, no Georgian, at most 4000 characters. Fenced code, inline code and pasted_content blocks are replaced with [Kept #n] placeholders before the request and restored afterwards; if a placeholder is lost or duplicated the original prompt goes through. It calls $.model.complete with Haiku (low effort, 10 s timeout) and a fixed proofreading system prompt that asks for JSON. The result is used only if it parses, lists at least one error, differs from the input and its length is within about 40% of the original; otherwise the prompt goes through unchanged. The corrected text replaces the prompt (no note, the original is not passed on), and up to 8 corrections are written with $.ui.log after the prompt is accepted. Dashes are normalised to hyphens. No fetch, files, process, env or eval. No npm dependencies.
- What it uses
-
- Reads your prompts: yes
- Sees tool calls: no
- Blocks or changes tool calls: no
- Reads or writes files: no
- Runs programs on your machine: no
- Calls the model (uses tokens): yes
- Sends data over the network: no
- Stores data: yes
- Shows something on screen: yes
Made this mod? Add a badge to your README
Paste this into your README. The badge says reviewed once the current version has been reviewed, and links readers to this page.
[](https://modsforclaude.com/mods/grammar-fix/)