
LanguageTool
CLI开源的语法、拼写与文风检查器,支持英、德、法、西、葡等 20 多种语言,可用命令行批量校对稿件,或在本机起 HTTP 检查服务供 agent 调用,适合写作者、译者与外语教师改稿。需要 Java 17(用 Homebrew 安装会自动带上)。
LanguageTool
LanguageTool is open-source proofreading software for English, Spanish, French, German, Portuguese, Polish, Dutch, and more than 20 other languages. It finds many errors that a simple spell checker cannot detect.
For more information, please see our homepage, at languagetool.org,
this README,
and CHANGES.
The LanguageTool core (this repo) is freely available under the LGPL 2.1 or later.
Docker
Try one of the following projects for a community-contributed Docker file:
github.com | hub.docker.com/r |
|---|---|
meyayl/docker-languagetool | meyay/languagetool |
Erikvl87/docker-languagetool | erikvl87/languagetool |
silvio/docker-languagetool | silviof/docker-languagetool |
Contributions
The development overview describes how you can contribute error detection rules.
For more technical details, see our dev pages.
Scripted installation and building
To install or build using a script, simply type:
#!/usr/bin/env sh
curl -L https://raw.githubusercontent.com/languagetool-org/languagetool/master/install.sh | sudo bash $options
If you wish to have more options, download the install.sh script. Usage options follow:
sudo bash install.sh <options>
Usage: install.sh <option> <package>
Options:
-h --help Show help
-b --build Builds packages from the bleeding edge development copy of LanguageTool
-c --command <command> Specifies post-installation command to run (default gui when screen is detected)
-q --quiet Shut up LanguageTool installer! Only tell me important stuff!
-t --text <file> Specifies what text to be spellchecked by LanguageTool command line (default spellcheck.txt)
-d --depth <value> Specifies the depth to clone when building LanguageTool yourself (default 1).
-p --package <package> Specifies package to install when building (default all)
-o --override <OS> Override automatic OS detection with <OS>
-a --accept Accept the oracle license at http://java.com/license. Only run this if you have seen the license and agree to its terms!
-r --remove <all/partial> Removes LanguageTool install. <all> uninstalls the dependencies that were auto-installed. (default partial)
Packages(only if -b is specified):
standalone Installs standalone package
wikipedia Installs Wikipedia package
office-extension Installs the LibreOffice/OpenOffice extension package
Commands:
GUI Runs GUI version of LanguageTool
commandline Runs command line version of LanguageTool
server Runs server version of LanguageTool
Alternate way to build from source
Before start: you will need to clone from GitHub and install Java 17 and Apache Maven.
Warning: a complete clone requires downloading more than 500 MiB and needs more than 1 500 MiB on disk. This can be reduced, if you only need the last few revisions of the master branch by creating a shallow clone:
#!/usr/bin/env sh
git clone --depth 5 https://github.com/languagetool-org/languagetool.git
A shallow clone downloads less than 60 MiB, and needs less than 200 MiB on disk.
In the root project folder, run:
#!/usr/bin/env sh
mvn clean test
(Sometimes, you can skip Maven step for repeated builds.)
#!/usr/bin/env sh
./build.sh languagetool-standalone package -DskipTests
Test the result in languagetool-standalone/target/.
#!/usr/bin/env sh
./build.sh languagetool-wikipedia package -DskipTests
Test the result in languagetool-wikipedia/target.
Now, you can use the bleeding edge development copy of LanguageTool *.jar files, be aware that it might contain regressions.
How to run under Mac M1 or M2
-
Install Brew for Rosetta:
#!/usr/bin/env sh arch -x86_64 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)" -
Install OpenJDK for Rosetta:
#!/usr/bin/env sh arch -x86_64 brew install openjdk -
Install Maven for Rosetta:
#!/usr/bin/env sh arch -x86_64 brew install maven -
Now, run the build scripts.
License
Unless otherwise noted, this software – the LanguageTool core – is distributed under the LGPL; see
COPYING.txt.
相關資源

DeepL plugin for Claude
PluginDeepL 官方 Claude Code 插件:接入 DeepL 托管服务,翻译文本以及 Word、PPT、Excel、PDF 等文档并保留排版,还能润色改写、纠正语法、调用术语表,内置统一的翻译规则。需要符合条件的 DeepL 订阅(具体套餐以 DeepL 说明为准),首次使用时在浏览器登录。
DeepL/claude-plugin2
InkOS
CLI面向小说、剧本、互动影游与长文翻译的创作 Agent,有 CLI、TUI 与网页工作台,统一管理设定、角色与伏笔,负责审稿修订,也可作为 Skill 被其他 Agent 调用。需 Node.js 22.16+ 与 Kimi、DeepSeek 等模型 API Key。
Narcooo/inkos11.5k
textlint
CLI可插拔的自然语言检查工具,像检查代码一样按规则检查 Markdown 与纯文本稿件的用词、标点和术语一致性并自动修正,也能作为 MCP 服务运行。规则需另装,生态以日语、英语规则为主;需要 Node.js 20 以上。
textlint/textlint3.2k
LinguaGacha
CLI面向小说、字幕、电子书和游戏文本的大模型翻译器,可一键生成术语表保证人名译法统一,并自动审校;除桌面界面外提供 CLI 模式(translate / analyze,输出 JSONL 状态)。需先从发布页下载应用,并准备 DeepSeek 等大模型接口;商业用途需先联系作者授权。
neavo/LinguaGacha2.8k
EPUBCheck
CLIW3C 官方的 EPUB 电子书合规检查器,由 DAISY 联盟维护,能找出书稿中不符合 EPUB 2/3 规范的问题并输出报告,自出版作者和编辑可在上架前自查。需要 Java,下载发布包后用 java -jar 运行。
w3c/epubcheck2k
TeXtidote
CLI对 LaTeX 和 Markdown 源文件做拼写、语法与格式检查(如图表未被引用),并把问题定位回源码行号,可输出 HTML 报告。语法检查基于 LanguageTool,支持英、德、法等语言,不支持中文;macOS 可用 Homebrew 安装(自带 Java)。
sylvainhalle/textidote1.1k