TransWikia.com

How to remove words added by mistake from spelling check?

Mathematica Asked on February 3, 2021

In text mode, I mistakenly add a word exx to the dictionary, which makes it impossible to check the spelling of this word. What can I do to delete only the mistakenly added word from the dictionary?

enter image description here

One Answer

We can use CurrentValue to find the words that have been added to the dictionary for all notebooks:

CurrentValue[$FrontEnd, {SpellingDictionaries, "CorrectWords"}]

(* {"MyCompany", "AnotherCompany", "exx"} *)

We can update the dictionary by assigning a new list to this expression. This could be a completely new list or, as in the following example, we might delete just a single word:

CurrentValue[$FrontEnd, {SpellingDictionaries, "CorrectWords"}] =
  DeleteCases[CurrentValue[$FrontEnd, {SpellingDictionaries, "CorrectWords"}], "exx"]

(* {"MyCompany", "AnotherCompany"} *)

Words can also be added or removed from the dictionary associated with a particular notebook by replacing $FrontEnd in these expressions with EvaluationNotebook[] or any other notebook reference.

Reference: Add Words to the Spelling Dictionary.

Answered by WReach on February 3, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP