Page History
Excerpt Include | ||||||
---|---|---|---|---|---|---|
|
# | Parameter | Possible Valuesvalues | Default Valuevalue | Description |
---|---|---|---|---|
1 | text |
| A piece of text which will be sent for language detection. | |
2 | 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). | |
3 | format |
| json | The response format for output data. |
Response
...
structure
# | Name | Description |
---|---|---|
1 | LangShortCode | A language short code. |
2 | LangName | A full name of a detected language. |
3 | Proportion | The proportion ration of the detected language in the text. |
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] |
...
Command: detect_language
Text: this sampl text demonstrates the work of the Web API service.
Request Responseresponse:
Code Block | ||||
---|---|---|---|---|
| ||||
{ "LangShortCode": "en_US", "LangName": "American English", "Proportion": 0.98 } |
...