Apparently I mistakenly added a bad word to the custom spelling dictionary.
- How can I remove the bad word?
- Where is this dictionary stored? I'd hope for it to be in a text file I could edit directly.
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.
FileNames[FileNameJoin[{$UserBaseDirectory, "Autoload", "SystemFiles", "SpellingDictionaries"}]]
? $\endgroup$