Gender from a name
gender_from_namePredicts gender from a name, returning probability, sample size, and match type. Supports country weighting; uncertain names return 'unknown'.
Instructions
Predicts gender from a person's name. The answer carries more than the gender: the probability, how many people the sample is based on and how the name was matched. Names it cannot be sure about return "unknown" instead of a guess.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | A first name, or a full name to extract the first name from. | |
| country | No | Two-letter ISO 3166-1 country code (TR, DE, US). When given, the answer is weighted by that country's data — the same name can have a different gender by country. |