Ubuntu 的默认终端拼写检查器是什么?

ano*_*us2 18 command-line spell-checking

默认情况下,Ubuntu 16.04 LTS 附带一个程序,该程序完全在终端中运行,并对文本文件进行拼写检查。但是我很难记住这个程序叫什么。这个程序是什么,我如何运行它~/Documents/file

mur*_*uru 23

Ubuntu 显然默认带有两个拼写检查程序:

$ apropos spell
aspell (1)           - interactive spell checker
aspell-autobuildhash (8) - Autobuilding aspell hash files for some dicts
aspell-import (1)    - import old personal dictionaries into GNU Aspell
enchant (1)          - a spellchecker
enchant-lsmod (1)    - Show information about available spell-checking module...
Run Code Online (Sandbox Code Playgroud)

enchant也是一个ispell兼容的拼写检查器,并列在ISO 清单中,因此默认安装。

虽然它不是默认安装的,但 Vim 的完整版本也支持拼写检查,并且在更复杂的文件中做得更好(例如,只对 HTML 中的文本进行拼写检查)。


ano*_*us2 15

我需要的程序是aspell. 运行非常简单:

aspell check ~/Documents/file
Run Code Online (Sandbox Code Playgroud)

它将根据区域设置自动检查文件是否存在拼写错误。有关它的更多信息可以在手册页中找到。

希望这可以帮助某人!