I would like to have a way to dynamically add and remove words from the system-wide dictionary in Mountain Lion. The use-case is:
- I'm working on a piece of fiction that has a lot of odd names in it that I would like spell-checked — hit some key-combination that loads those odd name into the dictionary list of known words
- I'm done working on the fiction and I no longer want those words polluting my dictionary — hit some key-combo to unload those words from the dictionary
I could be working on two separate pieces of fiction and would want to load and unload each list separately. I'm not looking for an app with a custom spell-checker; I'm definitely looking for something that works with the built-in, system-wide spell checking sub-system.
All solutions considered: open source, paid applications, AppleScript, Automator, shell scripts — anything and everything.
Best Answer
When you press the Learn button, the word is added to
~/Library/Spelling/LocalDictionary
if the language is set to automatic or to~/Library/Spelling/en
if the language is set to U.S. English.en_GB
is used for British English anden
is used only for U.S. English.If you edit the files in
~/Library/Spelling/
directly, you can apply the changes by terminating theAppleSpell
process.So try to assign a shortcut to a script like this:
If for example you use the British English dictionary, change
en
toen_GB
.You can install
terminal-notifier
withsudo /usr/bin/gem install terminal-notifier
.