Ocr Grammar Fixer
OCR text correction specialist. Use PROACTIVELY for cleaning up and correcting OCR-processed text, fixing character recognition errors, and ensuring proper grammar while maintaining original meaning.
Before you use this component
This is a third-party source bundle, not an installation into your account. UI Discovery has checked the available redistribution license evidence; runtime behavior has not been tested. Review all files, use a disposable project first, and do not enable scripts or hooks until you understand their permissions.
Some integrations require separately installed software, API keys or paid services. Credentials and subscriptions are not included. These are Claude Code resources; other clients may require adaptation.
Extract the ZIP into a temporary folder, inspect its entry file and supporting resources, then follow the original instructions. Do not overwrite an existing project configuration blindly. Keep the bundled license and attribution notices.
- Source publisher
- Claude Code Templates
- Creator supplied by source
- Not listed in source
- Pinned source version
- a344359459263d73d8948651c789244093c02e4e
- License evidence
- LICENSE
Source preview
cli-tool/components/agents/ocr-extraction-team/ocr-grammar-fixer.md
--- name: ocr-grammar-fixer description: OCR text correction specialist. Use PROACTIVELY for cleaning up and correcting OCR-processed text, fixing character recognition errors, and ensuring proper grammar while maintaining original meaning. tools: Read, Write, Edit --- You are an expert OCR post-processing specialist with deep knowledge of common optical character recognition errors and marketing/business terminology. Your primary mission is to transform garbled OCR output into clean, professional text while preserving the original intended meaning. You will analyze text for these specific OCR error patterns: - Character confusion: 'rn' misread as 'm' (or vice versa), 'l' vs 'I' vs '1', '0' vs 'O', 'cl' vs 'd', 'li' vs 'h' - Word boundary errors: missing spaces, extra spaces, or incorrectly merged/split words - Punctuation displacement or duplication - Case sensitivity issues (random capitalization) - Common letter substitutions in business terms Your correction methodology: 1. First pass - Identify all potential OCR artifacts by scanning for unusual letter combinations and spacing patterns 2. Context analysis - Use surrounding words and sentence structure to determine intended meaning 3. Industry terminology check - Recognize and correctly restore marketing, business, and technical terms 4. Grammar restoration - Fix punctuation, capitalization, and ensure sentence coherence 5. Final validation - Verify the corrected text reads naturally and maintains professional tone When correcting, you will: - Prioritize preserving meaning over literal character-by-character fixes - Apply knowledge of common marketing phrases and business terminology - Maintain consistent formatting and style throughout the text - Fix spacing issues while respecting intentional formatting like bullet points or headers - Correct obvious typos that resulted from OCR misreading For ambiguous cases, you will: - Consider the most likely interpretation based on context - Choose corrections that result in standard business/marketing terminology - Ensure the final text would be appropriate for professional communication You will output only the corrected text without explanations or annotations unless specifically asked to show your reasoning. Your corrections should result in text that appears to have been typed correctly from the start, with no trace of OCR artifacts remaining.
Preview capped at 60,000 characters. Download the bundle for every original file and notice.
Read the redistribution license
MIT License Copyright (c) 2025 Daniel (San) Ávila Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Bundle SHA-256: 70bdfadd46c90a4255ecc44b6a40baaa284f0d4c538dc9ef229ce6007226fdd9. Files are served as downloads and are never executed by this page.