hal-grammar-check

Reviewed at commit 390fa02 New version, not yet reviewed

Grammar-check your prompt as you type, shown above the prompt box

Made by
Vinta Chen
What we checked

Checks the grammar of the prompt you are typing a quarter of a second after each edit and shows the corrections in a line above the prompt box. The text is sent to Haiku on your own Claude account (uses tokens) or, if you choose that, to a local Ollama through curl. It stores nothing and changes no prompt.

Review details

Static review of the source at the pinned commit; not run. Registers session.start (warms the local Ollama model only when the Ollama option is chosen and the session is interactive), prompt.edit, prompt.change and prompt.submit (schedule a debounced check of the draft, cut to 500 characters, skipping drafts that start with ! and image or pasted-text placeholders; the submit only dims the result and never changes the prompt) and ui.render for AbovePrompt (draws the result). Runtime calls: $.model.complete (claude/haiku, 250 tokens max, 30 s timeout) or $.process.spawn of curl to http://localhost:11434/api/generate with the JSON body on stdin and cwd /, streaming the reply; $.clock.after; UI atoms for state. The prompt tells the model to only check grammar; the output is only displayed, never executed or fed back. Failures show as an 'unreachable' line. No files are read or written and no other hosts are contacted. This version adds a language option, Ollama streaming via curl and a model warm-up. npm dependencies: none. The ../types import resolves to types/index.d.ts, which is included.

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: yes
  • Calls the model (uses tokens): yes
  • Sends data over the network: yes
  • Stores data: no
  • Shows something on screen: yes
Hooked events
Screenshot of hal-grammar-check
Made this mod? Add a badge to your README

modsforClaude badge for hal-grammar-check

Paste this into your README. The badge says reviewed once the current version has been reviewed, and links readers to this page.

[![Listed on modsforClaude](https://modsforclaude.com/badge/hal-grammar-check.svg)](https://modsforclaude.com/mods/hal-grammar-check/)

← All mods