1

We have a small linux cluster (12 machines). Before we populate our database (then create a report from database contents) we would like to spell check a few files. The problem I have is some fields in the text file will contain lists of drugs and other medical terms and other acronyms that the spell checker will automatically think is a spelling error. Eg the line

DRUGS:=ASPIRIN;BISOPROLOL;RAMIPRIL;GTN;TAMSULOSIN;PIZOTIFEN;CO-CODAMOL

When I issue the command aspell --lang en_GB check filename

It doesn't recognise most of these drugs?

Is it possible to create a wordlist (i.e a text file containing a list of accepted drugs and acronyms) that aspell can use so that: (a) it ignores incorrectly spelled drugs (b) If a drug is mis-spelled it suggests the correctly spelled version

4

Yes, you can add a personal wordlist with the --personal=FILE or -p parameter:

aspell -p /path/to/my/wordlist check /path/to/the/file/to/check

Your personal wordlist should have one word per line.

If you do not want to type the option each time, you can add it to your ~/.aspell.conf or /etc/aspell.conf.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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