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. This functionality is built on top of the Compact Language Detector 2 (CLD2) library. It can detect over 80 languages.
Command name: detect_language |
# | Parameter | Possible Values | Default Value | Description |
---|---|---|---|---|
1 | format |
| json | The response format for output data. |
2 | text |
| A piece of text which will be sent for language detection. | |
3 | 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). |
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:
{ "Language": "en_US" } |