A fast command-line tool to find and correct common English misspellings in source code and text files.
Misspell is a command-line utility written in Go that detects and corrects common English spelling mistakes in source code, markdown, and plain text files. It solves the problem of maintaining correct spelling across codebases and documentation efficiently, without the bloat of general-purpose spell checkers.
Developers, technical writers, and open-source maintainers who need to ensure spelling accuracy in code comments, documentation, and text files as part of their CI/CD or pre-commit workflows.
Developers choose Misspell for its exceptional speed, ease of integration into automated pipelines, and focus on correcting only the most common misspellings without the complexity of full grammar checking.
Correct commonly misspelled English words in source files
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Uses the Aho–Corasick algorithm via Go's strings.Replacer for simultaneous multi-word matching, making it 100–1000x faster than linear alternatives like regex-based checkers.
Supports US and UK English variants with the `-locale` flag, allowing automatic conversion between spellings like 'colour' to 'color' based on preference.
Outputs corrections in CSV, SQLite dumps, or custom Go templates, enabling easy integration into CI/CD pipelines or data analysis workflows.
The `-w` flag automatically overwrites files with corrections, making it ideal for batch processing or pre-commit hooks without manual intervention.
It only supports US and UK English, with no built-in support for other languages, which restricts its utility in international or multilingual projects.
Due to case-sensitive matching, it can incorrectly flag variable names in source code (e.g., 'bodyreader' triggering corrections), as noted in the 'Known Issues' section.
It doesn't recognize word boundaries, leading to potential mistakes in corrections and more false positives compared to tools that understand linguistic context.