Style and Grammar Checker for 25+ Languages
Find a file
Stefan Viol cbdef0c65c
Add extended sentence range (#9510)
* add new class and fields

* refactor LanguageIdentifier

* set ExtendedSentenceRange in lt

* add ExtendedSentenceRange to CheckResults

* implement ExtendedSentenceRange and add them to the response json;
Update tests (disable them) TODO: implement tests

* start implement tests for MultiLanguage

* Update Tests

* Update Tests

* remove old tests

* format files and cleanup

* Update PR
2023-10-27 16:50:23 +02:00
.circleci try to fix build 2023-07-22 10:40:58 +02:00
.github/workflows remove weekly-check.yml via gh actions 2022-12-02 16:14:06 +01:00
languagetool-client-example v5.9 2022-09-28 16:36:28 +02:00
languagetool-commandline [core] show fullId in rule profiling 2023-10-17 01:31:49 +02:00
languagetool-core Add extended sentence range (#9510) 2023-10-27 16:50:23 +02:00
languagetool-dev Add extended sentence range (#9510) 2023-10-27 16:50:23 +02:00
languagetool-gui-commons 6.4-SNAPSHOT 2023-10-06 23:28:20 +02:00
languagetool-http-client SentenceAnnotator: remove FPs after restart 2023-10-27 15:40:34 +02:00
languagetool-language-modules Add extended sentence range (#9510) 2023-10-27 16:50:23 +02:00
languagetool-office-extension [LO extension] optimization of check dialog 2023-10-27 09:57:29 +02:00
languagetool-rpm-package Fix typo found by codespell in languagetool-rpm-package 2023-07-15 19:55:06 +02:00
languagetool-server Add extended sentence range (#9510) 2023-10-27 16:50:23 +02:00
languagetool-standalone Add extended sentence range (#9510) 2023-10-27 16:50:23 +02:00
languagetool-tools 6.4-SNAPSHOT 2023-10-06 23:28:20 +02:00
languagetool-wikipedia 6.4-SNAPSHOT 2023-10-06 23:28:20 +02:00
.circleci.settings.xml [circleci] update settings to for deplay artifacts 2022-02-10 09:45:02 +01:00
.editorconfig remove "insert_final_newline = true" as people edit the files whose editor doesn't obey this setting (or .editorconfig at all) 2021-10-28 12:40:23 +02:00
.gitattributes gitattributes to auto-convert line endings 2020-08-04 16:17:36 +02:00
.gitignore wti pull 2023-04-14 13:56:43 +02:00
.gitpod.Dockerfile use Java 8 in gitpod 2020-10-31 22:25:27 +01:00
.gitpod.yml use the Dockerfile 2020-10-31 22:36:39 +01:00
build-zip.sh update to make it work again 2022-03-25 21:54:58 +01:00
build.sh modified build.sh to exit with build exit code, not rm exit code 2019-12-12 10:53:59 +01:00
COPYING.txt add license here, too, as developers might look for it here 2017-04-07 21:34:58 +02:00
create_snapshot.sh [all] Update maven pom 2021-11-23 16:23:49 +01:00
deploy-modules.sh Update circleCI test and deploy scripts 2023-05-26 15:23:38 +02:00
deploy_release.sh update deploy script 2023-09-05 14:15:32 +02:00
install.sh chmod +x install.sh 2023-07-15 19:56:31 +02:00
local_history.patch [fr] FRENCH_WORD_REPEAT_RULE improved 2022-06-20 11:20:20 +02:00
multiLanguageSupport.md Add extended sentence range (#9510) 2023-10-27 16:50:23 +02:00
owasp_fp.xml whitelist jar for the cve scan (false positive) 2022-11-18 11:22:47 +01:00
pom.xml Update dependency 2023-10-27 12:33:43 +02:00
README.md small updates 2022-07-31 16:23:54 +02:00
test-modules.sh fix bug in test-modules.sh 2023-06-02 11:28:25 +02:00

LanguageTool

LanguageTool is an 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 https://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:

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:

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 8 and Apache Maven.

Warning: a complete clone requires downloading more than 500 MB and needs more than 1500 MB on disk. This can be reduced if you only need the last few revisions of the master branch by creating a shallow clone:

git clone --depth 5 https://github.com/languagetool-org/languagetool.git

A shallow clone downloads less than 60 MB and needs less than 200 MB on disk.

In the root project folder, run:

mvn clean test

(sometimes you can skip Maven step for repeated builds)

./build.sh languagetool-standalone package -DskipTests

Test the result in languagetool-standalone/target/.

./build.sh languagetool-wikipedia package -DskipTests

Test the result in languagetool-wikipedia/target.

./build.sh languagetool-office-extension package -DskipTests

Test the result in languagetool-office-extension/target, rename the *.zip to *.oxt to install it in LibreOffice/OpenOffice.

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: arch -x86_64 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
  2. Install openjdk for Rosetta: arch -x86_64 brew install openjdk
  3. Install Maven for Rosetta: arch -x86_64 brew install maven
  4. Now run build scripts

License

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