The detect_language command is available since the release of WebSpellChecker v5.5.8 in March 2020. It detects the language(s) of a given text. Command name: detect_language
# | Parameter | Possible Values | Default Value | Description |
---|---|---|---|---|
1 | text |
| A piece of text which will be sent for language detection. | |
2 | format |
| json | The response format for output data. |
Example 1.1
http(s)://localhost:2880/?cmd=detect_language&text=This sampl text demonstrates the work of the detect language command of Web API service.
Parameters:
Command: detect_language
Text: This sampl text demonstrates the work of the detect language command of Web API service.
Request Response:
{ "Language": "en_US" }