languagetool
1.0.0
Languagetool是一种用于英语,西班牙语,法语,德语,葡萄牙语,波兰语,荷兰语和其他20多种语言的开源校对软件。它发现了许多错误的错误检查器无法检测到的错误。
有关更多信息,请在https://languagetool.org上查看我们的主页,此读取文件和更改。
langagetool Core(此存储库)在LGPL 2.1或更高版本下可免费获得。
尝试以下一个社区基础的Docker文件的项目之一:
开发概述描述了如何贡献错误检测规则。
有关更多技术细节,请参阅我们的开发页面。
要使用脚本安装或构建,只需键入:
curl -L https://raw.githubusercontent.com/languagetool-org/languagetool/master/install.sh | sudo bash < options >
如果您希望有更多选择,请下载install.sh
脚本。用法选项如下:
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
开始之前:您需要从Github克隆并安装Java 8和Apache Maven。
警告:完整的克隆需要下载超过500 MB,并且在磁盘上需要超过1500 MB。如果您只需要通过创建浅层克隆来进行主分支的最后几个修订,则可以减少这一点:
git clone --depth 5 https://github.com/languagetool-org/languagetool.git
浅的克隆下载少于60 MB,并且在磁盘上需要少于200 MB。
在根项目文件夹中,运行:
mvn clean test
(有时您可以跳过Maven步骤以进行重复构建)
./build.sh languagetool-standalone package -DskipTests
测试languagetool-standalone/target/
中的结果。
./build.sh languagetool-wikipedia package -DskipTests
测试languagetool-wikipedia/target
中的结果。
现在,您可以使用Languagetool *.jar
文件的出血边缘开发副本,请注意它可能包含回归。
arch -x86_64 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
arch -x86_64 brew install openjdk
arch -x86_64 brew install maven
除非另有说明,否则该软件(Languagetool Core)分布在LGPL下,请参见文件copying.txt。