How do grammar checkers work? It depends on the kind. A basic spell checker compares each word with a dictionary. A rule-based grammar checker looks for patterns that match known mistakes. Newer AI tools use language models trained on huge amounts of text to rewrite sentences into something more likely to be correct.
Each approach catches different problems, and each misses some. Knowing the difference helps you decide when to trust a suggestion and when to ignore it.
To show the gap, we ran a small test. We gave a basic dictionary-based spell checker 12 sentences, each with one common error. It caught both misspelled words and missed all 10 errors where the wrong word was a real word.
How do grammar checkers work?
Grammar checkers work in three main ways. Spell checkers compare each word with a dictionary and suggest close matches for unknown words. Rule-based checkers match your text against hand-written patterns of common errors. AI checkers use language models, trained on large amounts of text, to predict a corrected version of each sentence. Most modern tools combine several of these methods.

How does a spell checker work?
A basic spell checker looks up each word in a word list. If the word isn't there, it's flagged, and the checker suggests similar words that are.
Peter Norvig, a well-known computer scientist, described a simple version of this in an essay called "How to Write a Spelling Corrector", first published in 2007. For an unknown word, the program tries small edits, deleting, swapping, replacing or inserting a letter, to produce candidate words. It keeps only candidates that appear in its dictionary and picks the one that appears most often in a large collection of text. "Recieve" becomes "receive" because that's the most common real word one small edit away.
The weakness is built in. If a mistake produces a real word, the spell checker has nothing to flag.
What did our spell checker test show?
We tested an open-source spell checker for Python that follows Norvig's approach and uses a word list built from film and TV subtitles. We gave it 12 sentences, each with one error, in November 2026.
Sentence (error in bold) | Correct word | Flagged? |
|---|---|---|
Their going to the library after class. | They're | No |
The dog wagged it's tail. | its | No |
I could of finished it yesterday. | have | No |
We need to loose some weight before summer. | lose | No |
She said it was a quite night. | quiet | No |
Please except my apology. | accept | No |
The affect of the policy was huge. | effect | No |
He walked passed the school. | past | No |
I want to by a new laptop. | buy | No |
Your welcome to join us. | You're | No |
Recieve the package tomorrow. | Receive | Yes |
This is definately the answer. | definitely | Yes |
It caught both misspellings and none of the 10 real-word errors. Every wrong word in those 10 sentences is a correct English word in some other sentence, so a dictionary check can't see the problem.

This matches long-standing advice from writing centers. The University of North Carolina Writing Center warns that spell checkers miss misspellings that form another valid word, using "your" for "you're" as an example.
Many spell checkers in modern word processors and browsers do more than this basic version, often combining dictionary checks with grammar rules or context. Our test shows the limit of the dictionary step on its own, which is why the other layers exist.
How does a rule-based grammar checker work?
A rule-based checker matches your text against a large set of hand-written patterns, each describing a known mistake and its fix.
A simple rule might say: if "could", "would" or "should" is followed by "of", suggest "have". Another might flag "a" before a word starting with a vowel sound. Rules can also use word types, such as noun or verb, so a checker can spot "the dogs barks" as a subject-verb agreement error.
Rules are precise and easy to explain, which is why many checkers still use them. Their weakness is coverage. Someone has to write every rule, language is full of exceptions, and a rule that's too broad produces false alarms on correct sentences.
How do AI grammar checkers work?
Modern AI grammar checkers treat correction as rewriting. A language model reads your sentence and produces the most likely corrected version, learned from large numbers of examples of incorrect and corrected text.
A 2023 survey of the field by Christopher Bryant and colleagues, "Grammatical Error Correction: A Survey of the State of the Art", traces this progression. Early systems used hand-written rules. Later ones used statistical methods, including approaches borrowed from machine translation, which treat a sentence with errors like a sentence in another language to be translated into correct English. The survey describes neural machine translation methods as the dominant approach today. It also highlights a key technique for training these systems: generating artificial errors, because real examples of mistakes and their corrections are limited.
The advantage of AI checkers is context. A model that reads the whole sentence can see that "their going" should be "they're going". The disadvantage is that it may change more than you asked, smooth out your style or "correct" something that was right.
Which mistakes do you still need to catch yourself?
Some errors slip past almost every kind of checker, because the sentence is grammatical and every word is real. Here are a few examples:
"We should compliment the course with extra reading" (should be complement)
"The principle of the school spoke first" (should be principal)
"I'll meet you than" (should be then)
"The data shows a clear trend" versus "the data show": both appear in published writing, so checkers may disagree with your style guide
A context-aware checker will catch some of these, but not reliably. The quickest fix is a short personal list of words you often confuse, and a search for each one before you hand anything in.
Are grammar checkers accurate?
They're useful but not reliable enough to accept blindly. Every type makes two kinds of mistakes: missing real errors and flagging correct text.

Grammar checkers are generally good at misspellings, doubled words and simple agreement errors. They're weaker at:
Real words in the wrong place, as our test showed for basic spell checkers.
Names, technical terms and other languages, which often get flagged or "corrected" wrongly.
Meaning. A sentence can be grammatically perfect and still wrong, unclear or misleading.
Style choices. Fragments, informal tone and deliberate repetition can all be flagged even when they're intended.
UNC's editing guide also notes that grammar checkers have limited rules, make mistakes and often don't explain their suggestions, so you need to judge their feedback yourself.
How should you use a grammar checker?
Use it as a final pass, after you've fixed bigger problems like structure and clarity. Then review each suggestion instead of accepting them all.
Edit for meaning first. No checker can tell you whether your argument makes sense.
Run the checker. Read each flag and decide whether it's right.
Learn your patterns. If it keeps catching the same mistake, add it to your personal checklist.
Check the words it can't. Do a quick search for your own common confusions, like "their", "its" and "affect".
Read it aloud. You'll hear errors that look fine on screen.
Our guide on using AI to edit your writing covers a full editing process with AI tools, and our editing checklist covers the manual checks. When you've finished, you can paste your text into our free AI detector to see which sentences read most like AI, which is useful if an AI tool rewrote parts of it.
Frequently asked questions
How does spell check work?
A basic spell checker compares each word with a dictionary. If a word isn't found, it's flagged, and the checker suggests real words that are a small edit away, often choosing the most common one. Because it only checks whether a word exists, it can't catch real words used in the wrong place, like "loose" for "lose".
Why didn't spell check catch my mistake?
Probably because your mistake is a real word. In our test, a basic dictionary spell checker missed all 10 errors like "their" for "they're" and "except" for "accept", because every one of those words is spelled correctly. Grammar checkers that look at context catch more of these, but not all.
Are AI grammar checkers better than rule-based ones?
They're better at using context, so they catch more errors that depend on the surrounding words. But they can also change more than needed, alter your style or "fix" correct text. Rule-based checkers are more predictable and easier to understand. Many tools combine both approaches.
Can a grammar checker understand meaning?
Not in the way a person does. Rule-based checkers match patterns, and AI checkers predict likely corrections from patterns in text. Neither checks whether your facts are right or your argument makes sense. A sentence can pass every check and still be wrong, so meaning is your job.
Should I accept all grammar checker suggestions?
No. Read each one and decide. Checkers often flag names, technical terms, informal style and deliberate choices. They also miss some real errors. Accept the fixes you agree with, ignore the rest, and keep a list of mistakes you make often so you can check for them yourself.
Is using a grammar checker allowed for school work?
Usually, but check your course rules. Many teachers treat spelling and grammar checks as normal, but some count AI tools that rewrite sentences as AI use that must be disclosed. If a tool changes more than spelling and grammar, ask your teacher whether it's allowed.
Sources
Grammatical Error Correction: A Survey of the State of the Art, Bryant, Yuan, Qorib, Cao, Ng and Briscoe, arXiv, 2022, revised 2023
How to Write a Spelling Corrector, Peter Norvig, 2007, updated 2016
pyspellchecker, Python Package Index, accessed November 2026
Editing and Proofreading, University of North Carolina at Chapel Hill Writing Center, accessed November 2026
General Strategies for Editing and Proofreading, Gustavus Adolphus College Writing Center, accessed November 2026






Comments