APLawrence - Information and Resources for Unix and Linux Systems, Bloggers and the self-employed
RSS Feeds Get APLawrence.com by RSS











(OLDER) <- More Stuff -> (NEWER) (NEWEST)
Home > Linux Articles > Personal Dictionary for Ispell
Printer Friendly Version




Linux Section

Personal Dictionary for Ispell



Ispell works well, but it has to be the most confused project I've ever seen. I started looking into this because I got tired of seeing the same common words pop up for correction and wanted to add those words to some file that would cause Ispell to ignore them. Of course the first thing I did was try "man ispell". To my surprise, nothing came up. I did a "rpm -q --whatprovides `which ispell`" and found that it belongs to aspell-0.50.3-19.1, but "man aspell" and "info aspell" turned up nothing either.

This was interesting also:


$ ispell -v
@(#) International Ispell Version 3.1.20 (but really Aspell 0.50.3)
 

I did a "rpm -q --list aspell-0.50.3-19.1" and found some html documentation pages, but couldn't seem to find any easy way to add a simple list of words to ignore.

A Google search turned up http://www.gnu.org/software/ispell/ispell.html. If that's supposed to be documentation, I knew I was in big trouble. But I pressed on, and found http://cclib.nsu.ru/projects/gnudocs/gnudocs/ispell/ispell_toc.html which talked about using Ispell with emacs but also mentioned:

Your private dictionary

Whenever ispell is started the file `.ispell_words' is read from
your home directory (if it exists). This file contains a list of
words, one per line. The order of the words is not important, but
the case is. Ispell will consider all of the words good, and will
use them as possible near misses.

The I command adds words to `.ispell_words', so normally you don't
have to worry about the file. You may want to check it from time
to time to make sure you have not accidentally inserted a misspelled
word.

Great, just what I needed. Except it didn't work. To see why, I ran ispell with strace and looked for any attempt to open a file that failed. All I got was this:



open("/etc/aspell.conf", O_RDONLY)      = -1 ENOENT (No such file 
or directory)
open("/home/pcunixapl/.aspell.conf", O_RDONLY) = -1 ENOENT (No such file 
or directory)
 

Well, heck, I'd already read about those files, and they weren't going to help me. I checked all the "open" calls and nothing looked for a .ispell_words file.

So far, I'm stymied. It looks like the only way to do this is to build a custom dictionary, but that's not what I want. I want what the Emacs guide promised: "The I command adds words to `.ispell_words', so normally you don't have to worry about the file."

So, so far I have nothing.


If this page was useful to you, please click to help others find it:  
Your +1's can help friends, contacts, and others on the web find the best stuff when they search.


3 comments




More Articles by Tony Lawrence - Find me on Google+



Click here to add your comments





Thu Sep 8 14:00:29 2005:   MikeHostetler


It seems that you are running aspell in ispell mode (which you probably figured out). I prefer aspell -- I think that it does a better job trying to guess my horrible spelling.

Try looking for ~/.aspell.en.pws -- that is where mine is at.

Or you can just do:
aspell dump personal

Which will dump your personal dictionary.



Thu Sep 8 15:17:34 2005:   TonyLawrence

gravatar
Ah, yes, I see. And actually that seems to work just as I want it to: I can add words to it, but Ispell's "I" doesn't - which is exactly what I want.

Thanks!



Fri Apr 11 04:51:10 2008:   anonymous


I found the easiest way to add a few words to a personal dictionary was to use the pipe mode aspell -a. To summarise the commands, use *word to add a word to the personal dictionary and # to save the personal dictionary.

Don't miss responses! Subscribe to Comments by RSS or by Email

Click here to add your comments


If you want a picture to show with your comment, go get a Gravatar



Have you tried Searching this site?

Unix/Linux/Mac OS X support by phone, email or on-site: Support Rates

This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more. We appreciate comments and article submissions.

Publishing your articles here

Jump to Comments



Many of the products and books I review are things I purchased for my own use. Some were given to me specifically for the purpose of reviewing them. I resell or can earn commissions from the sale of some of these items. Links within these pages may be affiliate links that pay me for referring you to them. That's mostly insignificant amounts of money; whenever it is not I have made my relationship plain. I also may own stock in companies mentioned here. If you have any question, please do feel free to contact me.

Specific links that take you to pages that allow you to purchase the item I reviewed are very likely to pay me a commission. Many of the books I review were given to me by the publishers specifically for the purpose of writing a review. These gifts and referral fees do not affect my opinions; I often give bad reviews anyway.

We use Google third-party advertising companies to serve ads when you visit our website. These companies may use information (not including your name, address, email address, or telephone number) about your visits to this and other websites in order to provide advertisements about goods and services of interest to you. If you would like more information about this practice and to know your choices about not having this information used by these companies, click here.


My Troubleshooting E-Book will show you how to solve tough problems on Linux and Unix systems!


book graphic unix and linux troubleshooting guide




Buy Kerio from a dealer who knows tech: I sell and support

Kerio Connect Mail server, Control, Workspace and Operator licenses and subscription renewals
pavatar.jpg

This post tagged:

       - Linux
       - Unix




Unix/Linux Consultants

Skills Tests

Guest Post Here