Skip to main content

Gender

This API tries to determine what the gender of a person is based on their name and a database of over 90,000 entries tagged with their reported genders.

We recommend using this API in combination with the Names API.

Prediction labels

Limits

The maximum length accepted is 512 characters.

EmotionExample
malePedro, Louis
femaleHelen, Jenny
unknownDog, Tree

Invokation

curl -L -G 'http://api.textkit.ai/detect/gender' \
--data-urlencode 'text=Thomas Alba Edison' \
--header 'X-API-Key: your_api_key_here'

Response

{
"prediction": "male",
"confidence": "0.67",
"time_ms": 7
}
FieldMeaning
predictionThe predicted label. See above for reference
confidenceValue between 0 and 1 that indicates how confident the model is
time_msTime in milliseconds the model took to predict the label. It does not account for the network round trip time between request and response