API Reference
//
Detect language
Detects the languages used in the provided text fragment and returns the breakdown by offsets.
The request body should include:
content(string) - the text fragment to analyze.languages(string, optional) - a vertical bar-delimited list of language codes to use as cues.delimiter(string, optional) - a regular expression for segmenting the fragment; by default, the fragment is not segmented. The response is a JSON structure containinglanguages, which provides a breakdown of language codes.
Security
Tisane-API-Key
POST
- Basic
- Hints for ambiguous cases
- Breakdown of languages segmenting by line
curl -i -X POST \
https://api.tisane.ai/detectLanguage \
-H 'Content-Type: application/json' \
-H 'Ocp-Apim-Subscription-Key: YOUR_API_KEY_HERE' \
-d '{
"content": "c'\''est la vie"
}'Response
- Basic
- Hints for ambiguous cases
- Breakdown of languages segmenting by line
{ "languages": [ { … } ] }