public class RemoteLanguageTool extends Object
Constructor and Description |
---|
RemoteLanguageTool(URL serverBaseUrl) |
Modifier and Type | Method and Description |
---|---|
RemoteResult |
check(String text,
CheckConfiguration config) |
RemoteResult |
check(String text,
CheckConfiguration config,
Map<String,String> customParams) |
RemoteResult |
check(String text,
String langCode) |
RemoteResult |
check(String text,
String langCode,
Map<String,String> customParams) |
RemoteConfigurationInfo |
getConfigurationInfo(String urlParameters) |
int |
getMaxTextLength() |
public RemoteLanguageTool(URL serverBaseUrl)
serverBaseUrl
- for example https://languagetool.org/api
(not ending in slash)public RemoteResult check(String text, String langCode)
text
- the text to be checkedlangCode
- the language code like en
or en-US
- note that for some languages (like English) you
need to specify the country code (like US
or GB
) to get spell checkingpublic RemoteResult check(String text, CheckConfiguration config)
text
- the text to be checkedpublic RemoteResult check(String text, CheckConfiguration config, Map<String,String> customParams)
public RemoteConfigurationInfo getConfigurationInfo(String urlParameters)
public int getMaxTextLength()