Linux command
aspell 命令
文件
复制后可按需替换文件名、目录或参数。
常用示例
Check
aspell check [file.txt]
Example
aspell --lang=[es] check [file.txt]
List
aspell dicts
Example
echo "speling errror" | aspell list
Check a TeX/LaTeX file
aspell --mode=tex check [file.tex]
Example
aspell --lang=[en] create master [./custom.rws] < [wordlist.txt]
说明
aspell is a spell checker designed to replace ispell. It can check individual files, work as a pipe filter, or provide a C library interface for other programs. The tool supports multiple languages, personal dictionaries, and has better suggestion algorithms than older spell checkers.
参数
- check _file_
- Interactively check file
- list
- List misspelled words from stdin
- pipe
- Output misspelled words with position info (used by editors)
- -c _file_
- Same as check (GNU ispell compatibility)
- --lang=_code_
- Language code (en, es, fr, etc.)
- --mode=_mode_
- Parsing mode (tex, html, markdown, etc.)
- --encoding=_enc_
- File encoding
- --add-extra-dicts=_list_
- Additional dictionaries
- --personal=_file_
- Personal dictionary file
- --ignore=_n_
- Ignore words ≤ n characters
- --ignore-case
- Case insensitive checking
- dicts
- List available dictionaries
- dump _mode_
- Dump dictionary information
FAQ
What is the aspell command used for?
aspell is a spell checker designed to replace ispell. It can check individual files, work as a pipe filter, or provide a C library interface for other programs. The tool supports multiple languages, personal dictionaries, and has better suggestion algorithms than older spell checkers.
How do I run a basic aspell example?
Run `aspell check [file.txt]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does check _file_ do in aspell?
Interactively check file