codespell
A command-line checker that finds and fixes common misspellings in source code and text files.
By The codespell contributors
Compare codespell with another product
Alternatives
See all alternativesAbout codespell
codespell checks source code and other text files for a set of common misspellings. It is designed to catch errors such as “adn” without treating every unfamiliar or niche term as a mistake.
Run it on a directory, specific files, or patterns. It can report suggested corrections or apply changes with its write option, and can be installed with pip.
Strengths
- Checks source code and other text files
- Can apply suggested spelling fixes
- Supports specific paths and file patterns
Limitations
- Checks for common misspellings rather than all dictionary words
- Requires Python 3.9 or above
Details
- Pricing
- FreeFree and open source under the GPL-2.0 license.
- License
- GPL-2.0-only
- Developer
- The codespell contributors
- Platforms
- Command line
- How it runs
- Downloadable app
- Best suited for
- Developers checking source trees and text files for common typos
- Categories
- CLI tools, Developer tools
- Last verified
- Added
- Provenance
- Selected from the Homebrew formula