I need to get a clean txt document and my first approach is to use aspell. The issue is I need it on batch, no interactive mode. Every txt file is piped to aspell and must be returned a new document with the non-dictionnary words deleted.
I've found just the inverse behaviour: list the non-dictionnarydictionary words using
cat $file | aspell list | sort -u -f
Is aspell the correct tool to achieve that cleaned document folder? and what abou What about automatic substitution of mispelledmisspelled words? (using a predefined list file)
Regards