POST
/
lingua
/
language_detection
/
evaluate
[
  {
    "status": "processed",
    "score": 123,
    "passed": true,
    "details": "<string>",
    "cost": {
      "currency": "<string>",
      "amount": 123
    },
    "raw_response": {
      "input": {},
      "output": {}
    }
  }
]

Body

application/json
data
object[]
required

List of entries to be evaluated, check the field type for the necessary keys

settings
object | null

Evaluator settings, check the field type for what settings this evaluator supports

env
object | null

Optional environment variables to override the server ones

Response

200
application/json
Successful Response
score
number
required

How many languages were detected

passed
boolean | null
required

Passes if the detected language on the output matches the detected language on the input, or if the output matches the expected language

raw_response
object
required
status
enum<string>
default:
processed
Available options:
processed
details
string | null

Short human-readable description of the result

cost
object | null