You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

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

#ParameterPossible ValuesDefault ValueDescription
1format
  • json
  • xml
jsonThe response format for output data.
2text
  • plain text

A piece of text which will be sent for language detection. 

Example 1.1

Request URL (GET): 
http(s)://localhost:2880/?cmd=detect_language&text=this sampl text demonstrates the work of the Web API service.

Parameters:

  • Command: detect_language

  • Text: this sampl text demonstrates the work of the Web API service.

Request Response:

{
    "Language": "en_US"
}
  • No labels