Language checking

来自 Arch Linux 中文维基

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


Spell checkers[编辑 | 编辑源代码] || aspell, dictionaries, dictionaries in AUR
  • Hunspell — Spell checker and morphological analyzer library and program, see also hunspell(1). || hunspell, dictionaries in the official repositories, dictionaries in AUR
  • Nuspell — Spell checker library and program designed as a modern alternative to hunspell, see also nuspell(1). || nuspell, supports hunspell dictionaries
  • Ispell — Interactive spell-checking program for Unix, see also ispell(1). || ispell

Language-specific[编辑 | 编辑源代码]

  • Hspell — Hebrew spell-checker || hspell
  • Voikko — Finnish spelling and grammar checker, hyphenator and collection of related linguistic data || libvoikko

Enchant[编辑 | 编辑源代码]

Enchant is a wrapper library for generic spell checking, developed as part of AbiWord, supporting all above spell checkers apart from Ispell.

Enchant is available as the enchant package. It is also provided by the enchant-pureAUR package with minimal dependencies. For its usage and ordering file, see enchant-2(1).

Enchant is used by many applications through the following GTK libraries:

  • gspell — Flexible API to implement spell checking in GTK applications. || gspell
  • GtkSpell — Provides word-processor-style highlighting and replacement of misspelled words in a GtkTextView widget. || gtkspell, gtkspell3

拼写检查说所有文本都是错误的[编辑 | 编辑源代码]


$ aspell dicts


en_GB:aspell # 以en_GB为例

Applications[编辑 | 编辑源代码]

Firefox, Thunderbird, Chromium and LibreOffice can all use system-wide installed Hunspell dictionaries as well as dictionaries/other spell checkers installed through their own extension systems. See the following sections:

AbiWord and Gedit use Enchant.

Grammar checkers[编辑 | 编辑源代码]

  • LanguageTool — Open source language checker, written in Java. || languagetool
  • Style and Diction — Diction identifies wordy and commonly misused phrases. Style analyses surface characteristics of a document. || dictionAUR
  • TeXtidote — Language checker for LaTeX documents, relies on LanguageTool. || textidote-binAUR

Applications[编辑 | 编辑源代码]

Firefox, Thunderbird, Chromium and LibreOffice all support grammar checking only through extensions. For LibreOffice, see LibreOffice#Grammar checking.

AbiWord has a built-in grammar checker, see AbiWord#Grammar checking.