LinuxCommandLibrary

hunspell

spell checker and morphological analyzer

TLDR

Check spelling

$ hunspell [file.txt]
copy
Use specific dictionary
$ hunspell -d [en_US] [file.txt]
copy
List misspellings
$ hunspell -l [file.txt]
copy
Pipe input
$ echo "teh quikc fox" | hunspell -a
copy
Check in batch mode
$ hunspell -a < [file.txt]
copy

SYNOPSIS

hunspell [options] [files]

DESCRIPTION

Hunspell is a spell checker and morphological analyzer. It's the default spell checker for many applications including LibreOffice and Firefox.
The tool supports many languages with dictionary files. It can check files interactively or in batch mode for scripts.

PARAMETERS

FILES

Files to check.
-d DICT
Dictionary to use.
-l
List misspelled words.
-a
Ispell pipe mode.
-G
Print correct words too.
-H
HTML mode.
-L
LaTeX mode.
--help
Display help information.

CAVEATS

Requires dictionaries for languages. Replacement for ispell. Personal dictionary support.

HISTORY

Hunspell was created by László Németh as an improved ispell-like spell checker with better language support.

SEE ALSO

aspell(1), ispell(1), spell(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community