aspell - Unix, Linux Command


aspell - Spellchecks a file.


aspell check [options] filename 


aspell is a utility that can function as an ispell -a replacement, as an independent spell checker, as a test utility to test out Aspell features, and as a utility for managing dictionaries.


-mode=modeThe mode to use when checking files. The available modes are none, url, email, sgml, tex, texinfo, nroff and any others available on your system.
-dont-backupDon't create a backup file. Normally, if there are any corrections the Aspell utility, will append .bak to the existing file name and then create a new file with corrections, made during spell checking.
-sug-mode=modeThe suggestion mode to use where mode is one of ultra, fast, normal, or bad-spellers. For more information on these modes see Notes on the Different Suggestion Modes.
-l name
The language the document is written in. The default depends on the current locale.
-encoding=nameEncoding the document is expected to be in. The default depends on the current locale.
-master=nameThe main dictionary to use.
-keymapping=nameThe keymapping to use. Either aspell for the default mapping or ispell to use the same mapping that the Ispell utility uses.


  • To check the file sample.txt.

    $ aspell check sample.txt
  • To check the file sample.txt using the bad-spellers suggestion mode and the American English dictionary:

    $ aspell check --sug-mode=bad-spellers -d en_US sample.txt