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

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.

...

#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. 

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

Example 1.1

Code Block
titleRequest URL (GET): 
http(s)://localhost:2880/?cmd=detect_language&text=thisThis sampl text demonstrates the work of the detect language command of Web API service.

Parameters:

  • Command: detect_language

  • Text: this This sampl text demonstrates the work of the detect language command of Web API service.

Request Response:

...