Class RemoteLanguageTool
java.lang.Object
org.languagetool.remote.RemoteLanguageTool
Check a text using a remote LanguageTool server via HTTP or HTTPS.
Our public HTTPS API and its restrictions are documented
in our wiki.
- Since:
- 3.4
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncheck(String text, CheckConfiguration config) getConfigurationInfo(String urlParameters) int
-
Constructor Details
-
RemoteLanguageTool
- Parameters:
serverBaseUrl- for examplehttps://languagetool.org/api(not ending in slash)
-
-
Method Details
-
check
- Parameters:
text- the text to be checkedlangCode- the language code likeenoren-US- note that for some languages (like English) you need to specify the country code (likeUSorGB) to get spell checking
-
check
- Parameters:
text- the text to be checked
-
getConfigurationInfo
-
getMaxTextLength
public int getMaxTextLength()
-