DSpellCheck icon indicating copy to clipboard operation
DSpellCheck copied to clipboard

Two spell checker questions that no one ever thinks to ask or answer

Open TBugReporter opened this issue 8 years ago • 7 comments

Any good spell checker will allow a user to add words (uncommon technical terms, etc.), thereby designating words that are not found in its dictionary as nonetheless acceptable, but:

  • How does a user undo this add action if it gets done by mistake, or if it turns out to cause more problems than it solves? And,
  • How does a user remove words from the built-in dictionary, for when it accepts rare words that, in the user's experience, are more likely to be misspellings of other words?

TBugReporter avatar Jul 21 '16 20:07 TBugReporter

I agree with @TBugReporter that these two questions do not get enough attention traditionally. But as long as computer-aided spell checking exists, the first problem could be solved by editing the user dictionary, which is virtually always a plain text file. The only difficulty here is to know where that file is located, and the location of the user dictionary is often not made fully transparent to the users. LibreOffice already addresses the second problem: It allows you to blacklist certain words. See https://help.libreoffice.org/Common/Writing_Aids#Exceptions_.28-.29

janschreiber avatar Jul 21 '16 20:07 janschreiber

Thank you for your comment, but I was really hoping for some information specific to DSpellCheck, or rather to the DSpellCheck plugin for Notepad++.

TBugReporter avatar Jul 25 '16 01:07 TBugReporter

It seems that the words that you add to dictionary, goes to the ".usr" files, in this folder: %APPDATA%\Notepad++\plugins\config\Hunspell\

Hiro5 avatar Oct 25 '16 18:10 Hiro5

remember that the *.usr files first line is a count of the words in the list. so if you remove one word you must decrement the count and if you add you must increment the count. best way is to review the file is in notepad (not npp). make your word changes, then in the view menu view the status bar, go down to the last word and put your cursor on that line, the statusbar will show Ln: #, Col 1. the #-1 is the number of words minus one for the first line with the line count, goto the top and type that number on the first line. save file and your good to go.

einst3 avatar Jan 27 '17 21:01 einst3

From the looks of it Hunspell allows removal of word from its dictionary in run-time so blacklist may possibly be implemented. And removal of words from user dictionaries without editing text file could be done too. The only thing I'm cautious about is adding actions to context menu for correct words, maybe I'll implement them as additional hotkey.

Predelnik avatar Oct 30 '17 18:10 Predelnik

how about adding an Edit User Dictionary context menu item to open separate window with list of items in user dictionary to add/edit/delete.

einst3 avatar Oct 30 '17 18:10 einst3

Yeah I think that's good idea too. I'll see what I can do.

Predelnik avatar Oct 30 '17 19:10 Predelnik