Linux command
hunspell 命令
文件
复制后可按需替换文件名、目录或参数。
常用示例
Check spelling
hunspell [file.txt]
Use specific dictionary
hunspell -d [en_US] [file.txt]
List misspellings
hunspell -l [file.txt]
Pipe input
echo "teh quikc fox" | hunspell -a
Check in batch mode
hunspell -a < [file.txt]
说明
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.
参数
- -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.
FAQ
What is the hunspell command used for?
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.
How do I run a basic hunspell example?
Run `hunspell [file.txt]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -d _DICT_ do in hunspell?
Dictionary to use.