Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Excerpt Include
IN:_include_webapi_detect_language_intro
IN:_include_webapi_detect_language_intro
nopaneltrue

#ParameterPossible ValuesDefault ValueDescription
1text
  • plain text

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

2format
  • json
  • xml
jsonThe response format for output data.

Response Structure

#NameDescription
1LangShortCode

A language short code. 

2LangNameA full name of a detected language.
3ProportionThe proportion ration of the detected language in the text.

Example 1.1

Code Block
titleRequest URL (GET): 
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:

Code Block
languagejs
themeEmacs
{
    "LangShortCode": "en_US",
	"LangName": "American English",
	"Proportion": 0.98
}