Skip to content

Conversation

@eugman
Copy link

@eugman eugman commented Feb 1, 2026

I automatically scanned for typos, trained a local LLM to look for contextual errors, then I had Opus apply the fixes and I manually reviewed each one.

Also added a blocking GitHub action for common typos. We can add an inline fix button but it would require write permissions to the PR.

eugman and others added 2 commits February 1, 2026 14:32
Spelling corrections identified and validated through a multi-stage process:
1. Automated detection using pyspellchecker library
2. False positive filtering via fine-tuned LLM classifier (Gemma3:4b via Ollama, GEPA-optimized)
3. Automated fixes applied by Claude Opus 4.5
4. Final human review and approval
Adds a Python-based spellcheck CI that blocks PRs with 100% reliable typos.

Features:
- Precompiled regex patterns for performance
- Skips code blocks, inline code, and YAML frontmatter
- Directory pruning (os.walk) for efficiency
- Excludes localizedContent (English-only check)
- GitHub Actions annotations for inline PR feedback
- Symlink escape protection
- JSON schema validation

Files:
- scripts/ci_spellcheck.py: Main detection script
- data/common_typos.json: 32 typo patterns
- .github/workflows/spellcheck.yml: CI workflow

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant