languagetool README

The project's README from github.com/languagetool-org/languagetool. As one markdown file: README.md.

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

  1. 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)"
    
  2. Install OpenJDK for Rosetta:

    #!/usr/bin/env sh
    arch -x86_64 brew install openjdk
    
  3. Install Maven for Rosetta:

    #!/usr/bin/env sh
    arch -x86_64 brew install maven
    
  4. Now, run the build scripts.

License

Unless otherwise noted, this software – the LanguageTool core – is distributed under the LGPL; see COPYING.txt.

languagetool (languagetool-org/languagetool)

Searching Database…

Что это?Программа для проверки текста с открытым исходным кодом: она ищет грамматические и стилистические ошибки на английском, немецком, французском, испанском, польском, нидерландском и других языках — всего более 25 — и находит множество ошибок, которые пропускает обычная проверка орфографии.
Так это приложение, которое я устанавливаю, Java-библиотека или онлайн-сервис?И то, и другое, и третье: можно использовать как Java-библиотеку, обращаться к её HTTP API на публичном сервере или поднять собственный сервер — сборка из исходников также выдаёт автономные jar-файлы.
Как её запустить?Скрипт установки (install.sh) сам всё установит или соберёт, также можно взять один из Docker-образов от сообщества; сборка из исходников тоже описана в документации.
Что нужно перед сборкой из исходников?Java 17 и Apache Maven, плюс клон репозитория.
Сборка из исходников сильно грузит интернет и диск?Довольно: полный клон скачивает больше 500 МиБ и требует свыше 1500 МиБ на диске, но неглубокий клон (shallow clone) последних версий сокращает это до менее чем 60 МиБ и 200 МиБ.
Работает ли она на Mac с Apple Silicon?Да, через Rosetta: в README пошагово описано, как поставить Brew, OpenJDK и Maven для Rosetta, а затем запустить обычные скрипты сборки.
Она ловит только опечатки?Нет — в этом и весь смысл: она находит множество ошибок, которые не видит обычная проверка орфографии, и работает более чем с 25 языками.
Могу ли я попробовать свежую версию в разработке?Да — сборка из исходников даёт самые свежие jar-файлы в languagetool-standalone/target/, но README предупреждает, что там могут быть регрессии, поэтому для стабильности лучше брать релизы.
Size
6 GB
Stars
15.2K
Updated
CommitOct 19
Age
13y
Commits · 90 Days