How to remove an entry from ispell private dictionary?

我是研究僧i 提交于 2019-12-03 23:19:39

On my cygwin install ispell is just a wrapper around aspell:

$ ispell
Ispell compatibility script for Aspell.
Usage: /usr/bin/ispell [options] -a|-l|-v[v]|-c|-e[1-4]|<file>

If that is true of your installation, then you need to look at aspell files. Try aspell dump config.

You should just be able to edit your personal dictionary file to remove the unwanted entry. The dictionary file is a text file, probably located at ~/.ispell_default, or ~/.ispell_[LANGUAGE], e.g. ~/.ispell_italian.

If you are using Emacs, it creates its own personal dictionary file under what Emacs sees as ~/.aspell.[LANGUAGE].pws. On Windows this happens to be: C:\Users\Username\AppData\Roaming\. This is probably just an effect of the environment Emacs runs the dictionary under. To edit it in Emacs, you can use the tilde *nix style path, as well as the absolute DOS style path.

Super late to the party but hopefully I can help someone else with this issue. If you look at the top of the emacs window it tells you what program emacs is using for the dictionary. In my case it read "prog: hunspell."

So all you have to do in that case is find the hunspell dictionary and edit (i.e., remove) the rogue word.

In my case, 'emacs ~/.hunspell_en_US', opened a text file where I located and removed the word I accidentally added.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!