Customize flyspell (ispell) dictionary
Clash Royale CLAN TAG#URR8PPP
I know how to add custom words to ispell, but I would like to remove certain words from the dictionary. For example, although ass
and asses
are correct words, I rarely type them, and would like to flag them as likely typos to as
and assess
.
Where does ispell store its dictionary? The man page does not provide the location. Also, the man page makes it seem like there are a lot of steps to build a new dictionary, and it isn't just an ASCII file where I can remove certain words. Any advice how to build a new dictionary without a given word?
Edit
From some hints on: http://docstore.mik.ua/orelly/unix/upt/ch29_05.htm
It seems like I can start with /usr/share/dict/words, remove the words I don't want, and then make a new ispell dictionary from that. However, I'm having trouble making the new dictionary. buildhash
is the key program here, but it wants an affixfile, and I do not know how to generate that file.
spell-checking ispell
add a comment |
I know how to add custom words to ispell, but I would like to remove certain words from the dictionary. For example, although ass
and asses
are correct words, I rarely type them, and would like to flag them as likely typos to as
and assess
.
Where does ispell store its dictionary? The man page does not provide the location. Also, the man page makes it seem like there are a lot of steps to build a new dictionary, and it isn't just an ASCII file where I can remove certain words. Any advice how to build a new dictionary without a given word?
Edit
From some hints on: http://docstore.mik.ua/orelly/unix/upt/ch29_05.htm
It seems like I can start with /usr/share/dict/words, remove the words I don't want, and then make a new ispell dictionary from that. However, I'm having trouble making the new dictionary. buildhash
is the key program here, but it wants an affixfile, and I do not know how to generate that file.
spell-checking ispell
add a comment |
I know how to add custom words to ispell, but I would like to remove certain words from the dictionary. For example, although ass
and asses
are correct words, I rarely type them, and would like to flag them as likely typos to as
and assess
.
Where does ispell store its dictionary? The man page does not provide the location. Also, the man page makes it seem like there are a lot of steps to build a new dictionary, and it isn't just an ASCII file where I can remove certain words. Any advice how to build a new dictionary without a given word?
Edit
From some hints on: http://docstore.mik.ua/orelly/unix/upt/ch29_05.htm
It seems like I can start with /usr/share/dict/words, remove the words I don't want, and then make a new ispell dictionary from that. However, I'm having trouble making the new dictionary. buildhash
is the key program here, but it wants an affixfile, and I do not know how to generate that file.
spell-checking ispell
I know how to add custom words to ispell, but I would like to remove certain words from the dictionary. For example, although ass
and asses
are correct words, I rarely type them, and would like to flag them as likely typos to as
and assess
.
Where does ispell store its dictionary? The man page does not provide the location. Also, the man page makes it seem like there are a lot of steps to build a new dictionary, and it isn't just an ASCII file where I can remove certain words. Any advice how to build a new dictionary without a given word?
Edit
From some hints on: http://docstore.mik.ua/orelly/unix/upt/ch29_05.htm
It seems like I can start with /usr/share/dict/words, remove the words I don't want, and then make a new ispell dictionary from that. However, I'm having trouble making the new dictionary. buildhash
is the key program here, but it wants an affixfile, and I do not know how to generate that file.
spell-checking ispell
spell-checking ispell
edited May 17 '16 at 4:05
Evan Carroll
5,499114381
5,499114381
asked Mar 6 '14 at 13:34
mankoffmankoff
1837
1837
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
I solved this for aspell
.
Create a sorted file
aspell_no
containing words you do NOT want spell check to recognize.Run the following code:
aspell dump master | sort > aspell_master
comm -2 -3 aspell_master ~/.aspell_words_list_no > better_master
aspell --lang=en create master ./custom < better_master
sudo cp custom `aspell config dict-dir`
Test it:
echo "some words I do not want spell check to recognize" > test.txt
cat test.txt |aspell list --master=custom
Get it working in emacs (may need to restart flyspell or emacs to get this to work):
(setq ispell-program-name "aspell")
(setq ispell-list-command "list")
(setq ispell-extra-args '("--master=custom"))
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f118418%2fcustomize-flyspell-ispell-dictionary%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
I solved this for aspell
.
Create a sorted file
aspell_no
containing words you do NOT want spell check to recognize.Run the following code:
aspell dump master | sort > aspell_master
comm -2 -3 aspell_master ~/.aspell_words_list_no > better_master
aspell --lang=en create master ./custom < better_master
sudo cp custom `aspell config dict-dir`
Test it:
echo "some words I do not want spell check to recognize" > test.txt
cat test.txt |aspell list --master=custom
Get it working in emacs (may need to restart flyspell or emacs to get this to work):
(setq ispell-program-name "aspell")
(setq ispell-list-command "list")
(setq ispell-extra-args '("--master=custom"))
add a comment |
I solved this for aspell
.
Create a sorted file
aspell_no
containing words you do NOT want spell check to recognize.Run the following code:
aspell dump master | sort > aspell_master
comm -2 -3 aspell_master ~/.aspell_words_list_no > better_master
aspell --lang=en create master ./custom < better_master
sudo cp custom `aspell config dict-dir`
Test it:
echo "some words I do not want spell check to recognize" > test.txt
cat test.txt |aspell list --master=custom
Get it working in emacs (may need to restart flyspell or emacs to get this to work):
(setq ispell-program-name "aspell")
(setq ispell-list-command "list")
(setq ispell-extra-args '("--master=custom"))
add a comment |
I solved this for aspell
.
Create a sorted file
aspell_no
containing words you do NOT want spell check to recognize.Run the following code:
aspell dump master | sort > aspell_master
comm -2 -3 aspell_master ~/.aspell_words_list_no > better_master
aspell --lang=en create master ./custom < better_master
sudo cp custom `aspell config dict-dir`
Test it:
echo "some words I do not want spell check to recognize" > test.txt
cat test.txt |aspell list --master=custom
Get it working in emacs (may need to restart flyspell or emacs to get this to work):
(setq ispell-program-name "aspell")
(setq ispell-list-command "list")
(setq ispell-extra-args '("--master=custom"))
I solved this for aspell
.
Create a sorted file
aspell_no
containing words you do NOT want spell check to recognize.Run the following code:
aspell dump master | sort > aspell_master
comm -2 -3 aspell_master ~/.aspell_words_list_no > better_master
aspell --lang=en create master ./custom < better_master
sudo cp custom `aspell config dict-dir`
Test it:
echo "some words I do not want spell check to recognize" > test.txt
cat test.txt |aspell list --master=custom
Get it working in emacs (may need to restart flyspell or emacs to get this to work):
(setq ispell-program-name "aspell")
(setq ispell-list-command "list")
(setq ispell-extra-args '("--master=custom"))
edited Jan 15 at 9:33
answered Mar 8 '14 at 22:01
mankoffmankoff
1837
1837
add a comment |
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f118418%2fcustomize-flyspell-ispell-dictionary%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown