I try out a test.txt file with the following sentence:
The pt was seen in the ER
aspell -d ./spb_replacements.dict -c test.txt
runs aspell, which only complains about words other that pt and ER, which I ignore, but the corrected file doesnt contain replaced terms for pt or ER (I was expecting to see this output: The patient was seen in the
if I try another approach using the original replacement list file
aspell -c test.txt --repl=spb_replacements.list
Error: The file spb_replacements.list" is not in the proper format.
(also fails with spb_replacements.dict")
Can ASPELL actually replace words listed in a replacement wordlist file?
How? Is there an aspell version-dependency I am missing? What is the proper format for this file?
I am also interested to know your advice for using aspell in a java environment. Do you recommend SWIG or some other process or utility?