Sub topic 12
What spell checkers and automated checks can and cannot do
This chapter assumes you can already tell a typo from a grammar error and know the main error types in business documents. It covers what software catches, what it misses, and how to use it without relying on it.
How a spell checker works
A spell checker compares each word with a dictionary. If the word is not in the list, it is flagged. It does not understand what the sentence means.
This produces two kinds of failure:
- False positives: correct words that are flagged, such as product names, surnames, and technical terms.
- False negatives: wrong words that are not flagged, because the wrong word is also a valid word.
False negatives are the dangerous ones. They are called real-word errors.
| Error in the text | Intended word | Why the checker passes it |
|---|---|---|
| Please find the attached *form* | *from* | Both are valid words |
| We will *manager* the account | *manage* | A valid noun in the wrong role |
| The *principal* of the contract | *principle* | Both are valid words |
| Our offer is *to* low | *too* | Both are valid words |
Grammar checkers go further and look at sentence patterns. They catch some agreement errors and wordy phrases. They also give wrong advice, especially on long sentences, quoted text, and industry wording. Treat every suggestion as a question to answer, not an order to follow.
What simple automated checks can find
You can write a check for any error that follows a fixed pattern. Repeated words and double spaces are good examples.
import re
text = "Please send the the report by Friday. Thank you."
# Repeated words such as "the the"
repeated = re.findall(r"\b(\w+)\s+\1\b", text, flags=re.IGNORECASE)
print(repeated) # ['the']
# Runs of two or more spaces
double_spaces = re.findall(r" {2,}", text)
print(len(double_spaces)) # 1The first pattern matches a word, whitespace, and the same word again. The second matches two or more spaces in a row. Word processors offer the same idea through find-and-replace with wildcards or regular expressions.
These checks have limits too. The repeated-word pattern flags "that that" in "I know that that is true," which is correct. A person has to review every hit.
Pattern checks cannot answer questions like these:
- Is the date correct for the weekday named?
- Does the total match the sum of the table?
- Is the recipient's name spelled the way she spells it?
Those need a human who checks against a source.
Where software helps most
Use tools for work that is tedious and rule-based:
- Run the spell checker first, to clear obvious typos so your attention is free for harder problems.
- Search for double spaces, repeated words, and straight versus curly quotation marks.
- Use find to confirm that a term or name is spelled the same way every time.
- Use the word processor's cross-reference update to refresh figure and section numbers.
A sensible order of work
Tools go early for cleanup and again at the end as a final net. Your own reading sits between them.
The second spell check matters because every edit you make can add a new typo. Corrections made late in the process are a common source of errors in documents that were clean an hour earlier.
Common mistakes
- Treating a clean spell check as proof that the document is correct.
- Setting the checker to the wrong language variant, for example flagging or accepting "organisation" and "organization" against your house style.
- Adding a misspelled word to the custom dictionary, which hides it in every later document.
- Ignoring squiggly lines because there are too many. Fix the false positives by adding legitimate terms to the dictionary, so real flags stand out.
Exercise
A colleague says, "The spell checker found nothing, so the proposal is ready." Give two errors that the checker would not flag, and say what you would do to find each one.
Show answer
Examples: a real-word error such as "form" for "from", found by reading slowly, aloud or in reverse sentence order; and a figure in the text that differs from the table total, found by checking each figure against its source. Other valid answers: a wrong recipient name, or a wrong date and weekday pair, checked against the original email or calendar.
Exercise
Why can a repeated-word search flag a sentence that is correct, and what does that tell you about using automated checks?
Show answer
Some valid sentences repeat a word, such as "I know that that is true." A pattern search matches the form and not the meaning, so a person must review each result before changing anything.