Hunspell is a spell checker and morphological analyzer delivered as a shared library and an optional command-line tool. It supports complex morphology, compounds, and Unicode text.
Overview
Hunspell checks spelling and suggests corrections for languages that use word-level writing systems, including those with rich morphology and compounding. The same engine backs interactive checking and programmatic APIs used by office suites, browsers, and other applications.
The library layer offers C and C++ APIs plus bindings for many languages. Features include customizable suggestion rules, stemming, morphological analysis and generation, handling of affix-heavy languages, and support for multi-word compounds. A SPELLML XML layer wraps the core spell API for easier integration.
The hunspell executable provides an Ispell-style interface and can process plain text, OpenDocument, TeX, HTML, XML, and nroff. It supports multiple dictionaries at once, filtering options, and morphological analysis or stemming modes.
Hunspell builds on the MySpell lineage from OpenOffice.org and remains compatible with MySpell-style dictionary files. Documentation refers to man pages for the tool, library, and dictionary format.
Key features
- Unicode spell checking
- Morphological analysis and generation
- Complex compounding support
- Custom affix dictionaries
- Configurable misspelling suggestions
- C and C++ APIs with bindings
- Command-line batch checking
- Multiple document format parsers
Use cases
- Embed spelling in desktop applications
- Interactive terminal spell checking
- Morphology-aware language tools
- Dictionary and affix development
- Browser and office suite integration