语言检查

出自 ArchWiki
(重定向自 Aspell

本文介绍拼写检查语法检查软件。

除了特殊情况外,所有拼写检查器都有一个共同点,即它们由两个部分组成:逻辑单元和字典。请确保同时安装两者。

拼写检查器

http://aspell.net/ || aspell, 字典, AUR 中的字典
https://hunspell.github.io/ || hunspell, 官方仓库中的字典, AUR 中的字典
  • Nuspell — 拼写检查器库及程序,旨在作为 hunspell 的现代替代品,另请参阅 nuspell(1)
https://nuspell.github.io/ || nuspell, 支持 hunspell 字典
  • Ispell — 用于 Unix 的交互式拼写检查程序,另请参阅 ispell(1)
https://www.cs.hmc.edu/~geoff/ispell.html || ispell

特定语言

  • Hspell — 希伯来语拼写检查器
http://www.ivrix.org.il/projects/spell-checker/ || hspell
  • Voikko — 芬兰语拼写和语法检查器、断字器以及相关语言数据集合
https://voikko.sourceforge.net || libvoikko

Enchant

Enchant 是通用拼写检查的包装库,作为 AbiWord 的一部分开发,支持除 Ispell 之外的所有上述拼写检查器。

Enchant 可作为 enchant 软件包使用。有关其用法和排序文件,请参阅 enchant-2(1)

许多应用程序通过以下 GTK 库使用 Enchant

  • gspell — 在 GTK 应用程序中实现拼写检查的灵活 API。
https://wiki.gnome.org/Projects/gspell || gspell
  • GtkSpell — 在 GtkTextView 部件中提供类似文字处理器的拼写错误单词高亮和替换。
https://gtkspell.sourceforge.net/ || gtkspell, gtkspell3

应用

FirefoxThunderbirdChromiumLibreOffice 都可以使用系统范围安装的 Hunspell 字典以及通过其自身扩展系统安装的字典/其他拼写检查器。请参阅以下章节

语法检查器

  • LanguageTool — 开源语言检查器,用 Java 编写。
https://www.languagetool.org || languagetool
  • Style and Diction — Diction 识别冗长和常用误用短语。Style 分析文档的表面特征。
https://gnu.ac.cn/software/diction/ || dictionAUR
  • TeXtidote — 用于 LaTeX 文档的语言检查器,依赖于 LanguageTool。
https://sylvainhalle.github.io/textidote/ || textidote-binAUR

应用

FirefoxThunderbirdChromiumLibreOffice 都仅通过扩展支持语法检查。对于 LibreOffice,请参阅 LibreOffice#使用 LanguageTool 进行语法检查

AbiWord 具有内置的语法检查器,请参阅 AbiWord#语法检查