Page History
...
Info |
---|
Command name: detect_language |
# | Parameter | Possible Values | Default Value | Description | ||
---|---|---|---|---|---|---|
1 | format |
| json | The response format for output data. | ||
3 | text |
| A piece of text which will be sent for language detection. The text has to be in the UTF-8 encoding. Any found tags in the text will be interpreted as plan text as well.
| |||
4 | tokens |
| A piece of text separated in tokens that will be sent for check. The text should be presented as an array of strings. Right now each string is a token which equals one sentence.
| |||
18 | customerid |
| A special service ID value (activation key) that has to be passed to a request query. It's obtained upon subscription to the Cloud services (paid or trial).
|
Example 1.1
Code Block | ||
---|---|---|
| ||
http(s)://svc.webspellchecker.net/spellcheck31/script/ssrv.fcgi?cmd=detect_language&text=this sampl text demonstrates the work of the Web API service.&customerid=[your-service-id] |
Parameters:
Command: detect_language
Text: this sampl text demonstrates the work of the Web API service.
Request Response:
Code Block | ||||
---|---|---|---|---|
| ||||
{
"Language": "en_US"
} |