by Delon
High-performance, offline spellchecker for Obsidian using Hunspell .aff and .dic dictionary pairs.
Hunspell Spellchecker for Obsidian
A high-performance, offline spellchecker for Obsidian using standard Hunspell dictionaries (.aff and .dic files).
Features
- Offline by Design: All spellchecking happens locally on your device. No data is ever sent to external servers.
- Multiple Languages: Download and manage multiple language dictionaries directly within the plugin settings.
- Local Dictionaries: Add your own Hunspell
.affand.dicdictionary from your computer. See Local dictionaries. - Performance: Optimized to run smoothly even on large documents without causing typing lag.
- Personal Dictionary: Add custom words via right-click to prevent them from being flagged in the future.
- Ignored Words: Temporarily ignore words within your vault.
- Smart Capitalization: The plugin now respects the original capitalization of words added to your personal dictionary or ignored words list.
- Interactive Status Bar:
- Quickly see the active language.
- View the number of misspelled words currently visible on your screen.
- Click the active language to open settings.
- Click the error count (🔴) to see a dropdown list of misspelled words. Click any word in the list to jump directly to it in your text!
Installation
Requires Obsidian 1.13.0 or later.
From Obsidian Community Plugins
- Open Obsidian Settings.
- Go to Community plugins and turn off "Safe mode".
- Click Browse and search for "Hunspell Spellchecker".
- Install and enable the plugin.
Manual Installation
- Download the latest release from the Releases page.
- Extract the contents (
main.js,manifest.json,styles.css) into your vault's.obsidian/plugins/obsidian-hunspell-spellcheckerfolder. - Reload Obsidian and enable the plugin in Settings > Community plugins.
Usage
To download a dictionary, follow these steps. To add one from your computer instead, see Local dictionaries.
- Open the plugin settings.
- Scroll to Download Languages and click "Fetch available languages".
- Find your desired language in the list and click Install.
- Once installed, select it from the Active language dropdown at the top.
- Misspelled words will now have a red squiggly line underneath them.
- Right-click a misspelled word to see suggestions, add it to your dictionary, or ignore it.
Local dictionaries
If a language is not available in the GitHub list, you can add your own Hunspell dictionary from your computer:
- Open the plugin settings.
- Scroll to Local Languages and click Add local language.
- Select the
.affand.dicfiles of the dictionary together. - The language is installed, becomes the active language, and is listed under Installed Languages.
For example, to add English (US), select en_US.aff and en_US.dic. The language identifier is taken from the file name, so both files must follow these
rules:
- Exactly one
.afffile and one.dicfile must be selected. - Both files must have the same base name, and it is case-sensitive:
en_US.affwithen_US.dicis accepted, whileen_US.affwithen_us.dicis rejected. - The base name may only contain letters, numbers,
_and-. Spaces and dots are not allowed.
If a language with the same name is already installed, you will be asked to confirm before its files are replaced. To remove a local language, use the trash icon next to it in Installed Languages.
Support
If you find this plugin useful, you can support its development on Buy Me a Coffee.
Contributing
Contributions, issues, and feature requests are welcome!
License
MIT License
Diagnostic log
Remote fetches, cache use, downloads, and installations are recorded as JSON Lines in logs/hunspell-spellchecker.log inside the plugin folder. Each entry
includes an ISO timestamp, level, action, context, and serialized error details when applicable. The file is rotated at approximately 512 KB; it can be removed
manually or when the plugin is disabled.
Remote language discovery uses GitHub's recursive Git Trees API to reduce requests. If that response is unavailable or truncated, the plugin falls back to the
Contents API. GitHub's anonymous API has rate limits; when a refresh cannot be completed, the last valid cached list remains available, and the settings page
recommends trying again later. A 403 may indicate a rate limit or temporary block, rather than a missing dictionary.
For plugin developers
Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.