How the Grammar Checker Works
AnyTool Grammar Checker is a deterministic, rule-based linter that runs entirely in the browser — comparable to LanguageTool’s offline rules, Hemingway and the open-source write-good package rather than a cloud AI model. It tokenises the text with a Unicode-aware regular expression, then runs a series of offset-preserving passes: a curated misspelling dictionary, context-aware commonly-confused-word rules, mechanical punctuation and spacing checks, sentence capitalisation, and style passes (passive voice, wordy phrases and weak qualifiers) reused from the readability engine. Each finding is an offset range with a category, a plain-English message and a suggested replacement, so the editor can underline it and offer a one-click fix.
- Six categories: spelling, confused words, grammar, punctuation, capitalisation and style
- Misspellings come from a curated map (for example recieve→receive, seperate→separate)
- Confused-word rules fire only in telling contexts to keep false positives low
- Mechanically-safe fixes can be applied in bulk; context-sensitive ones are applied individually
- All checking is client-side JavaScript — no server round-trip
