lang-guard

Reviewed at commit c901585

Flags Russian words and plain-language slips (em-dash asides, 40+ word sentences, aphorisms) in Bulgarian answers; reminds Claude.

Made by
escapeboy
What we checked

Checks each finished answer from Claude for Russian words and letters and, when the answer is mostly Bulgarian, for long sentences, dash asides and a few stock phrases. If it finds any, it shows a warning line and adds a message to the conversation asking Claude to fix its wording. Made for Bulgarian speakers; it reads no files, runs no programs and makes no network calls.

Review details

Static review of the source at the pinned commit; not run. Registers one handler, turn.complete, which runs after the turn and only for the main loop with reason answer. It scans e.answer with regexes (code blocks and tables stripped), and when something is flagged calls $.session.append to add a user message beginning '[lang-guard]' with a correction reminder (this makes Claude see an extra message on the next turn) and returns a text warning for display. No store, file, network, process or environment calls, no model calls. Word lists and thresholds are hard-coded for Bulgarian and Russian, so it does nothing useful for other languages (the Russian check applies to any answer containing those Cyrillic words). npm dependencies: none.

What it uses
  • Reads your prompts: no
  • 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): no
  • Sends data over the network: no
  • Stores data: no
  • Shows something on screen: yes
Hooked events
Made this mod? Add a badge to your README

modsforClaude badge for lang-guard

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/lang-guard.svg)](https://modsforclaude.com/mods/lang-guard/)

← All mods