Detect language API
Last updated
Was this helpful?
Was this helpful?
[
{
"LangShortCode": "en_US",
"LangName": "English (US)",
"Proportion": 0.98
}
]<LanguageDetection>
<Language>
<LangShortCode>en_US</LangShortCode>
<LangName>English (US)</LangName>
<Proportion>0.98</Proportion>
</Language>
</LanguageDetection>GET https://endpoint/api?cmd=detect_language&text=this%20sampl%20text%20demonstrates%20the%20work%20of%20the%20Web%20API%20service.POST https://endpoint/api
Content-Type: application/json
{
"cmd": "detect_language",
"text": "this sampl text demonstrates the work of the Web API service."
}[
{
"LangShortCode": "en_US",
"LangName": "English (US)",
"Proportion": 0.98
}
]<LanguageDetection>
<Language>
<LangShortCode>en_US</LangShortCode>
<LangName>English (US)</LangName>
<Proportion>0.98</Proportion>
</Language>
</LanguageDetection>GET https://endpoint/api?cmd=detect_language&locale=es-ES&text=this%20sampl%20text%20demonstrates%20the%20work%20of%20the%20Web%20API%20service.POST https://endpoint/api
Content-Type: application/json
{
"cmd": "detect_language",
"locale": "es-ES",
"text": "this sampl text demonstrates the work of the Web API service."
}[
{
"LangShortCode": "en_US",
"LangName": "Inglés (Estados Unidos)",
"Proportion": 0.98
}
]<LanguageDetection>
<Language>
<LangShortCode>en_US</LangShortCode>
<LangName>Inglés (Estados Unidos)</LangName>
<Proportion>0.98</Proportion>
</Language>
</LanguageDetection>GET https://endpoint/api?cmd=detect_language&text=asdfghjklPOST https://endpoint/api
Content-Type: application/json
{
"cmd": "detect_language",
"text": "asdfghjkl"
}[
{
"LangShortCode": "Unknown",
"LangName": "Unknown",
"Proportion": 0.0
}
]<LanguageDetection>
<Language>
<LangShortCode>Unknown</LangShortCode>
<LangName>Unknown</LangName>
<Proportion>0</Proportion>
</Language>
</LanguageDetection>