Behind the Tool ยท How It Works

How Our Spelling and Grammar Checker Works

๐Ÿ“… 30 April 2026 ยท โฑ 5 min read ยท โœ SmartWriteTools

Most spelling and grammar tools are black boxes โ€” you paste text in, corrections come out, and you have no idea how it happened or how much to trust it. This post explains exactly how the SmartWriteTools Spelling Report and Grammar Checker work, what they can and cannot catch, and why we built them the way we did.

Two layers, not one

The toolkit uses two separate, complementary approaches to catch writing errors โ€” intentionally kept apart so results are easy to understand and trust.

Keeping them separate was a deliberate decision. Mixing them into one result list makes it harder to know what changed and why. Transparency builds trust.

Layer 1: Browser spellcheck

The textarea in the grammar checker has a single HTML attribute added to it: spellcheck="true". That is the entirety of layer one.

Your browser โ€” Chrome, Firefox, Safari, or Edge โ€” maintains its own dictionary and uses it to underline words it does not recognise in red. Right-clicking an underlined word gives you a list of suggested corrections. This system is fast, reliable, handles names and jargon gracefully (it learns from your previous corrections), and works entirely on your device. No text leaves your browser.

The main limitation is that browser spellcheck โ€” unlike a dedicated grammar checker โ€” does not understand context. It will not flag "their" when you meant "there", because "their" is spelled correctly โ€” it is just the wrong word.

Layer 2: The Spelling Report

The Spelling Report tool catches what browser spellcheck misses: words that are spelled a consistent wrong way that many people use โ€” and context-blind errors like "alot" where the mistake is not a single word but a missing space.

How it works: a lookup list

The tool holds a curated list of 75 of the most commonly misspelled English words, each paired with its correct spelling. When you run the report, it scans your text for every word on that list using a regular expression โ€” a precise pattern-matching technique โ€” and reports any it finds.

Example from the list

Pattern: \brecieve\b

The \b markers are word boundaries โ€” they ensure "recieve" is only matched as a standalone word, not as part of a longer string like "unrecievable". The match is case-insensitive, so "Recieve", "RECIEVE", and "recieve" are all caught.

When a match is found, the tool reports it as:

Output format
โŒ recieve โ†’ receive   2ร—
โŒ alot โ†’ a lot   1ร—

The occurrence count (2ร—, 1ร—) tells you how often the mistake appears, so you know whether it is a one-off typo or a consistent habit to correct.

What the Spelling Report does NOT do

It is important to be clear about the limits. The Spelling Report:

Think of the Spelling Report as a focused second opinion, not a complete spell checker. Used alongside browser spellcheck, the two layers together cover a broad range of common mistakes.

Layer 2: The Grammar Checker

Grammar checking is significantly harder than spell checking. A grammar checker needs to understand context, not just spelling. The word "your" is not wrong โ€” "your going to the shop" is wrong. Catching that requires understanding that "going" is a verb following a pronoun, which should trigger "you're" (you are) rather than "your" (possessive).

Full grammar checker engines โ€” like those in Grammarly or Microsoft Word โ€” use large language models trained on millions of sentences. We are not building that. Instead, the Grammar Checker targets a small, specific set of high-confidence rules where the pattern is reliable enough to flag without generating false positives.

The rules and why we chose them

Rule 1 โ€” your / you're

Pattern: "your" followed immediately by a verb ending in -ing (going, doing, being, etc.). In natural English, "your going" is almost always a mistake โ€” the correct form is "you're going" (you are going). The list of -ing verbs is explicit and curated, keeping false positives close to zero.

Rule 2 โ€” there / their / they're

Pattern: "there" or "their" followed by an -ing verb. "There going" and "their going" are both almost certainly "they're going". Same logic as rule 1 โ€” the -ing verb is the reliable signal.

Rule 3 โ€” its / it's

Pattern: "its" followed by certain words that imply the verb "to be" (going, clear, possible, important, not, a/an). "Its going to be fine" is almost certainly "It's going to be fine". The follow-on word list is conservative to avoid flagging legitimate uses of the possessive "its".

Rule 4 โ€” capitalisation after a full stop

Pattern: a sentence-ending punctuation mark (. ! ?) followed by a space and then a lowercase letter. This is reliable because English always capitalises the first word of a new sentence. The only edge cases are abbreviations (e.g., "Dr. smith") โ€” which is why the tool says "review in context" rather than auto-correcting.

Rule 5 โ€” double spaces

Pattern: two or more consecutive space characters. Double spaces are almost always unintentional โ€” a relic of typing habits or copy-paste from other sources. This is one of the most reliable rules in the set.

Rule 6 โ€” should/could/would of

Pattern: "should of", "could of", "would of". The correct forms are "should have", "could have", "would have". This mistake is extremely common in informal writing and the rule has essentially no false positives โ€” "should of" is never correct in standard English.

Rule 7 โ€” less / fewer

Pattern: "less" followed by a plural noun (ending in -s). The rule of thumb: use "fewer" for things you can count (fewer words, fewer mistakes) and "less" for uncountable quantities (less time, less water). "Less mistakes" should be "fewer mistakes". This rule is conservative โ€” it only flags clear cases with a following plural.

What the Grammar Checker does NOT do

The grammar checker does not:

Each of those problems requires deep language understanding that goes well beyond what a pattern-matching system can reliably do. Adding rules that generate false positives would make the tool feel untrustworthy โ€” which is worse than not catching the error at all.

Why no AI?

A fair question. AI-powered grammar tools โ€” trained on billions of sentences โ€” can catch subtler errors, understand tone and register, and suggest rewrites. So why not use one?

Three reasons:

The two tools working together

The recommended workflow is straightforward:

  1. Write or paste your text into the editor
  2. Glance at the red underlines from browser spellcheck and right-click to fix obvious typos
  3. Run the Spelling Report to catch habitual misspellings in the curated list
  4. Run the Grammar Checker to flag the specific confusables and punctuation issues it targets
  5. Review each suggestion in context before accepting it โ€” both tools say "review in context" for a reason

This combination catches a wide range of common writing mistakes quickly, without requiring an account, an internet connection beyond the initial page load, or sending your text anywhere.

Choosing the right grammar checker for your needs

Not every grammar checker is right for every situation. Here is a quick guide to matching the tool to the task.

If you are writing personal or confidential content โ€” drafts, private notes, business documents โ€” use a grammar checker that runs locally in your browser. The SmartWriteTools grammar checker never sends your text to a server. Nothing leaves your device.

If you are writing long-form professional content and want deeper suggestions โ€” tone, style, word choice โ€” an AI-powered grammar checker like Grammarly or LanguageTool may be worth the subscription. Be aware that your text is sent to their servers and used to improve their models.

If you are a student or blogger checking for common mistakes before publishing, a free grammar checker with a focused ruleset is usually enough. Most student writing errors fall into a small number of categories โ€” your/you're, capitalisation, double spaces, should have โ€” that a rule-based grammar checker handles reliably.

Whatever grammar checker you use, always review suggestions in context before accepting them. A grammar checker is a second opinion, not a final editor.

Verifying your corrections

After running the spelling and grammar checker and making corrections, a text compare tool provides a useful final check. Paste the uncorrected draft into Panel A and the corrected version into Panel B. The word-level diff shows every change โ€” useful for confirming that only the flagged errors were corrected and no unintended edits crept in.

Try it on your own text

Paste anything into the editor and run the Spelling Report and Grammar Checker โ€” both are free, instant, and private.

Open SmartWriteTools โ†’

โ† Back to Blog