Perm url with updates: http://xahlee.org/comp/aspell_spell_checking.html
This page shows you the basics of using aspell.
Aspell home page is at: aspell.net.
Short intro by Wikipedia GNU Aspell.
Full manual is at the home page. You can also read it from the command line. Type:
# short usage summary aspell usage # short doc. man aspell # long list of all options aspell help # full manual info aspell
How to spell check a file interactively?
aspell check filename.txt
It launches into a interactive prompt.
How to spell check a file in batch?
cat myFile.txt | aspell pipe --encoding utf-8
The output is long list with annoying “*” for each line. To avoid that, use the following.
cat myFile.txt | aspell pipe --encoding utf-8 | grep -v \* | uniq
To list only the misspelled words, do:
cat myFile.txt | aspell list --encoding utf-8
How to use aspell to check a single word?
echo badword | aspell pipe echo somee words ar good some badd | aspell pipe
Where is personal dictionary at?
It's at “~/.aspell.en.pws”. The file is just a list of words, one on each line (except the first line). Not sorted.
When you spell check a doc, such as “aspell check myFile.txt”, you can type “a” to add it.
There are also features for checking similar sounding words or word's root or affix and surfixes. e.g.
aspell soundslike aspell munch
However, am not sure to use them. They didn't work on my machine.