hunspell --version (return code: 0)
@(#) International Ispell Version 3.2.06 (but really Hunspell 1.6.1)
Copyright (C) 2002-2014 László Németh. License: MPL/GPL/LGPL.
Based on OpenOffice.org's Myspell library.
Myspell's copyright (C) Kevin Hendricks, 2001-2002, License: BSD.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE,
to the extent permitted by law.
hunspell --help (return code: 0)
Usage: hunspell [OPTION]... [FILE]...
Check spelling of each FILE. Without FILE, check standard input.
-1 check only first field in lines (delimiter = tabulator)
-a Ispell's pipe interface
--check-url check URLs, e-mail addresses and directory paths
--check-apostrophe check Unicode typographic apostrophe
-d d[,d2,...] use d (d2 etc.) dictionaries
-D show available dictionaries
-G print only correct words or lines
-h, --help display this help and exit
-H HTML input file format
-i enc input encoding
-l print misspelled words
-L print lines with misspelled words
-m analyze the words of the input text
-n nroff/troff input file format
-O OpenDocument (ODF or Flat ODF) input file format
-p dict set dict custom dictionary
-r warn of the potential mistakes (rare words)
-P password set password for encrypted dictionaries
-s stem the words of the input text
-S suffix words of the input text
-t TeX/LaTeX input file format
-v, --version print version number
-vv print Ispell compatible version number
-w print misspelled words (= lines) from one word/line input.
-X XML input file format
Example: hunspell -d en_US file.txt # interactive spelling
hunspell -i utf-8 file.txt # check UTF-8 encoded file
hunspell -l *.odt # print misspelled words of ODF files
# Quick fix of ODF documents by personal dictionary creation
# 1 Make a reduced list from misspelled and unknown words:
hunspell -l *.odt | sort | uniq >words
# 2 Delete misspelled words of the file by a text editor.
# 3 Use this personal dictionary to fix the deleted words:
hunspell -p words *.odt
Bug reports: http://hunspell.github.io/