Text Correction Rules
A correction rule replaces one piece of text with another after recognition. Where a word list helps OCRR read a term correctly in the first place, a rule cleans up a mistake it keeps making anyway.
Rules belong to domains, so each kind of document gets its own set.

How Rules Match
A text rule finds its text anywhere inside a text box, whatever the capitalization, and replaces every place it appears in that box. A rule with replacement text isn't applied to a box that already contains that replacement. Box rules — Delete Box and Remove Text, below — act only on a box whose entire text matches exactly.
Opening the Editor
- Text Corrections in the tools row, then Manage
- Document → Text Corrections…
- Settings → Corrections → Manage Correction Rules
- In Batch Processing: select a domain, then Text Processing Options → Manage Corrections
Select a domain first. Without one, Text Corrections and Document → Text Corrections… are dimmed.
Creating Rules
- Open the editor for your domain.
- Type the text OCRR produces in Find text.
- Type what it should say in Replace with — or leave it empty to delete the text wherever it's found.
- Click Add Rule.
Managing what's there:
- Switch — turns a rule off and on without losing it
- Edit — the pencil icon (text rules)
- Delete — the trash icon
- Search rules… — narrows a long list
Click Done (or press Esc) when you're finished. The gear at the top opens the domain's correction settings.
Let OCRR Suggest Them
With a domain selected, the fixes you make to recognized text are kept as possible rules until you quit OCRR, and the editor lists them under Suggestions from recent edits:
- Click a suggestion to load it into the rule fields, check it, and click Add Rule
- Or click Add All Suggestions to turn them all into rules at once
Suggestions come from small, character-level fixes — any change to a short line, and changes to a longer one that touch no more than about a quarter of it. A wholesale rewrite, such as one from Writing Tools, isn't offered as a rule. A suggestion you don't add never becomes a rule.
Some edits suggest box rules, which act on whole text boxes in later documents of the domain:
- Deleting a box suggests Delete Box — a box with exactly that text is removed
- Delete Text Only suggests Remove Text — the box stays, its text goes
- Drawing a new box with Block Editing suggests adding the same box, with its text, at the same place on the page
Over a few documents the domain learns the errors your scanner and your paper actually produce — which beats guessing at them up front.
Applying Rules
- Click Text Corrections in the tools row, then Apply, to run the domain's rules on the recognized text. Edit → Undo takes the whole pass back.
- Or turn on Apply corrections automatically (below), and they run after every recognition in that domain — in Batch Processing too.
Import and Export
Export Rules writes the domain's rules to a CSV file (Find Text, Replace Text, Enabled). Import Rules reads one back into the selected domain:
- Each rule comes in switched on or off as the file says.
- A rule whose text to match the domain already has is skipped, and the existing rule is kept. When the import finishes, OCRR says how many rules it added and skipped.
Tip: A rules file can be the one Export Rules writes or a simple two-column file — the text to match first, the replacement second. Rules from a two-column file are switched on; an Enabled column reading No, False, 0 or Off brings a rule in switched off. A header row is optional.
Correction Settings
In Settings → Corrections (the gear button in the Text Corrections popover opens it), for the domain selected in the main window. In Batch Processing, use Text Processing Options → Correction Settings.

- Enable text corrections for this domain — the master switch. Off, Apply is dimmed and nothing runs automatically.
- Apply corrections automatically — apply the rules as soon as recognition finishes. Shown while corrections are enabled.
Best Practice
- Be specific.
companv → companyis safe.v → ywill sink other words. - Target your real errors. Write rules for mistakes that actually show up in your documents.
- Start from suggestions. Let your own edits find the patterns.
- Keep domains separate. A rule that helps invoices may hurt correspondence.
Navigation
- Previous: Word Lists
- Next: Settings