Find synonyms for Swedish words directly in Obsidian with local dictionary support and online lookup.
- Local Dictionary: Fast offline synonym lookup using comprehensive dictionary files
- Online Lookup: Fallback to online sources when local dictionary doesn't have results
- Custom Synonyms: Add your own custom synonyms that take priority over all other sources
- Multi-language Support: Automatically detects available language dictionaries in the assets folder
- Context Menu Integration: Right-click on any word to find synonyms
- Keyboard Shortcut: Quick access via command palette
- Ribbon Icon: One-click access from the sidebar
-
Copy the following files to your vault's plugin folder:
.obsidian/plugins/synonym/ ├── main.js ├── manifest.json └── assets/ ├── th_sv_SE_v2.dat ├── th_sv_SE_v2.idx └── custom-synonyms.json -
Enable the plugin in Obsidian's Community Plugins settings
- Select a word in your note
- Right-click and choose "Hitta synonymer" (Find synonyms)
- Click on a synonym to replace the selected word
Alternative methods:
- Use the ribbon icon (clipboard icon) in the left sidebar
- Use the command palette: "Visa synonymer för markerat ord"
- Select a word
- Right-click and choose "Lägg till synonym" (Add synonym)
- Enter your custom synonym in the dialog
- Go to Settings → Swedish Synonyms
- Click "Öppna anpassad synonymfil" (Open custom synonym file)
- Edit the JSON file directly
The custom-synonyms.json file must be located in the plugin's assets folder:
{
"word": ["synonym-1", "synonym-2", "synonym-3"],
"example": ["sample", "rolemodel"],
"fast": ["quick", "speedy", "hasty"]
}Important formatting rules:
- All words must be in lowercase
- Each word is a key with an array of synonyms
- Synonyms are case-sensitive in the results but matching is case-insensitive
Example:
{
"computer": ["pc", "machine", "mac"],
"book": ["volume", "script", "work"],
"fast": ["quick", "rapid", "speedy"]
}Choose which language dictionary to use. The plugin automatically detects available .dat files in the assets folder.
Enable this to filter out vulgar words from synonym suggestions (default: OFF).
Enable/disable online synonym lookup when local dictionary doesn't have results.
Search online even if local synonyms are found (combines results from all sources).
Set the maximum number of synonyms to display (3-25, default: 10).
The plugin searches for synonyms in this order:
- Custom synonyms (assets/custom-synonyms.json) - Highest priority
- Assets dictionary (th_sv_SE_v2.dat) - Comprehensive local dictionary
- Online sources When enabled, it adds synonyms if there are additional ones available online.
To add support for additional languages, download thesaurus files from the LibreOffice dictionaries repository:
English (US)
- Files:
th_en_US_v2.dat - Download: en_US thesaurus
English (UK)
- Files:
th_en_GB_v2.dat - Download: en_GB thesaurus
- Note: For online lookup, use Thesaurus.com or Synonyms.net (both work for UK English)
Swedish
- Synlex (Included)
- Files:
th_sv_SE_v2.datandth_sv_SE_v2.idx - Download: sv_SE thesaurus
German
- Files:
th_de_DE_v2.dat - Download: de_DE thesaurus
French
- Files:
th_fr_FR_v2.dat - Download: fr_FR thesaurus
Spanish
- Files:
th_es_ES_v2.dat - Download: es_ES thesaurus
Portuguese (Brazil)
- Files:
th_pt_BR_v2.dat - Download: pt_BR thesaurus
Italian
- Files:
th_it_IT_v2.dat - Download: it_IT thesaurus
-
Click on the link for your desired language
-
Download both the
.datand.idxfiles (look for files starting withth_) -
Place the files in your plugin's
assetsfolder:.obsidian/plugins/synonym/assets/ ├── th_en_US_v2.dat ├── th_en_US_v2.idx ├── th_sv_SE_v2.dat ├── th_sv_SE_v2.idx └── ... -
Reload the plugin
-
The new language will appear in the "Dictionary language" dropdown in settings
- Check that the assets folder contains the dictionary files
- Verify your internet connection if using online lookup (swedish and english for now)
- Ensure the JSON file is valid (use a JSON validator)
- Check that words are in lowercase
- Reload the plugin after editing custom-synonyms.json
- Verify all required files are present
- Check the console (Ctrl+Shift+I) for error messages
- Try disabling and re-enabling the plugin
- Dictionary data: Swedish thesaurus (th_sv_SE_v2)
- Online source: synonymer.se
- Icon: Obsidian's built-in clipboard-list icon
MIT
- Added support for local dictionary files (th_sv_SE_v2.dat)
- Added custom synonyms feature
- Added multi-language support
- Increased max synonyms to 25
- Improved online lookup reliability
- Fixed iOS compatibility issues
- Initial release
- Basic synonym lookup