I use a command-line utility
called ispell to spell
check my text files under linux.
Here's an example of what I mean:
ispell readme.txt
The above command will go through
the readme.txt file looking
for misspelled words. It will
offer suggestions as to how the
word might be spelled correctly.
Should you choose to accept the
suggested corrected spelling, it
will correct the spelling of the
word for you with a single keypress.
How about web pages that you are
working on locally on your hard
drive? How do you spell check
these?
Of course, you could upload the web
page to the web server and then
spell check it on the web. That's
one way of doing things.
However, what if you want to spellcheck
locally? What if you'd like to spellcheck
your text that is marked up with HTML
without having to go to the web?
Here's a sample command that demonstrates
what I do in this case:
ispell -h index.html
In the above example, index.html
is on my hard drive in the current
directory. I add the -h option
to let ispell know that I want
it to ignore HTML markup and only
spellcheck the body of text itself.
This is very very handy if you work in
a simple text editor but wish to
spellcheck without having to go to
the web to find a spellcheck application.
A favorite feature of mine is ispell's
ability to respond on one keypress. One
keypress gets you many things.
One of my favorite keypresses is the
letter i. The letter i allows you
to add a word to your own personal
dictionary. Here's where your personal
dictionary is stored in a hidden
file under your home directory:
~/.ispell_default
Once a word has been stored in the
.ispell_default file under your
home directory, it becomes a regular
word that ispell now considers to
be correctly spelled. It will even
suggest that word from time to time
should you come up with a misspelling
that is an approximation of the correct
spelling.
Words from ispell's built-in dictionary
and words from your personal dictionary
are both first-class citizens. Words
from both sources are likely to be suggested
as possible correct spellings.
How does ispell suggest words? It's
one single keypress all over again.
ispell might suggest 10 different
spellings. The suggestions will appear
as keypresses 0 through 9.
Let's say ispell suggests 36 different
spellings. In that case, the choices
will range from 00 through 35. Thus
two keypresses will be required to make
a choice.
Normally, though, only one keypress is
needed. Ten suggestions or less is typical.
More than ten suggestions is the exception.
Ed Abbott