Customize flyspell (ispell) dictionary

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP












4















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.










share|improve this question




























    4















    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.










    share|improve this question


























      4












      4








      4








      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.










      share|improve this question
















      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






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited May 17 '16 at 4:05









      Evan Carroll

      5,499114381




      5,499114381










      asked Mar 6 '14 at 13:34









      mankoffmankoff

      1837




      1837




















          1 Answer
          1






          active

          oldest

          votes


















          5














          I solved this for aspell.



          1. Create a sorted file aspell_no containing words you do NOT want spell check to recognize.


          2. 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"))





          share|improve this answer
























            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
            );



            );













            draft saved

            draft discarded


















            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









            5














            I solved this for aspell.



            1. Create a sorted file aspell_no containing words you do NOT want spell check to recognize.


            2. 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"))





            share|improve this answer





























              5














              I solved this for aspell.



              1. Create a sorted file aspell_no containing words you do NOT want spell check to recognize.


              2. 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"))





              share|improve this answer



























                5












                5








                5







                I solved this for aspell.



                1. Create a sorted file aspell_no containing words you do NOT want spell check to recognize.


                2. 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"))





                share|improve this answer















                I solved this for aspell.



                1. Create a sorted file aspell_no containing words you do NOT want spell check to recognize.


                2. 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"))






                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Jan 15 at 9:33

























                answered Mar 8 '14 at 22:01









                mankoffmankoff

                1837




                1837



























                    draft saved

                    draft discarded
















































                    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.




                    draft saved


                    draft discarded














                    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





















































                    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






                    Popular posts from this blog

                    How to check contact read email or not when send email to Individual?

                    Bahrain

                    Postfix configuration issue with fips on centos 7; mailgun relay