Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to add words in aspell dictionary?

I am using aspell in my application for spell checking. I don't have any idea about how to add words in aspell. Is it any way to add words

like image 979
RAHUL.S. KRISHNA Avatar asked Jun 03 '15 12:06

RAHUL.S. KRISHNA


2 Answers

To add words you feed in a list. If the word has a asterisk at the front it is added to the current dictionary. If there is a single line with a hash then the newly added words are saved to the users personal dictionary and then can be used through out the system.

echo "*WORD\n#" | aspell -a

There are multiple things you can do in relation to adding words to your dictionary and you can read about them here.

like image 103
Songy Avatar answered Oct 16 '22 02:10

Songy


To add a new word newword, do:

echo -e "*newword\n#" | aspell -a
like image 42
Nathan B Avatar answered Oct 16 '22 02:10

Nathan B