Tell me more ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

From hunspell man page:

...
    When in the -a mode, hunspell will also accept lines  of  single
    words  prefixed  with  any of '*', '&', '@', '+', '-', '~', '#',
    '!', '%', '`', or '^'.  A line starting with '*' tells  hunspell
    to  insert the word into the user's dictionary (similar to the I
    command).
...

I tried something like: echo "* my_word" | hunspell -a but the word is not in my dictionary as parsing sample file again shows it as misspelled word

How does this work, how can I add custom word?
Or with Aspell, or any "common" program that writes to compatible dictionaries read by Hunspell/Aspell?

share|improve this question

1 Answer

I found out that easiest solution is to use Aspell and create custom file in home folder, named .aspell.lang.pws, with contents like:

personal_ws-1.1 en 0
my_word

for language "en", which seems like great way to share "portable dictionary", BTW

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.