5
$\begingroup$

Apparently I mistakenly added a bad word to the custom spelling dictionary.

  1. How can I remove the bad word?
  2. Where is this dictionary stored? I'd hope for it to be in a text file I could edit directly.
$\endgroup$
2
  • $\begingroup$ Can you check if there's anything in the folder returned by FileNames[FileNameJoin[{$UserBaseDirectory, "Autoload", "SystemFiles", "SpellingDictionaries"}]]? $\endgroup$ Commented Oct 12, 2016 at 3:45
  • $\begingroup$ @J.M. Unfortunately, that returns an empty list. $\endgroup$
    – Alan
    Commented Oct 12, 2016 at 5:01

1 Answer 1

4
$\begingroup$

As shown here, you can edit your dictionaries in advanced options menu:

Edit -> Preferences... -> Advanced -> Open Option Inspector -> Formatting Options -> Text Content Options -> Spelling Dictionaries

Or you can set SpellingDictionaries option programmatically with SetOptions[] command, as shown in this answer.

Something like this should work:

file = Import["words.txt","List"]
SetOptions[$FrontEndSession, SpellingDictionaries -> {"CorrectWords" -> file}]

P.S. Replace \$FrontEndSession with \$FrontEnd for a permanent global setting.

$\endgroup$
1
  • $\begingroup$ While the link you offer does not discuss removing words, the menu path you suggest does work. The interface is slow and awkward, so I would like programmatic access. I suppose I should be able to deduce this from the menu path, but I did not. Can you add this to your answer? $\endgroup$
    – Alan
    Commented Oct 12, 2016 at 15:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.