| genderapi_gender | R Documentation |
Sends one POST /gender request (one billable operation). The request is
never retried. A successful unknown result is billable and is returned,
not raised as an error.
genderapi_gender(
type,
value,
country = NULL,
ai_mode = NULL,
force_to_genderize = FALSE,
id = NULL,
client = genderapi_client()
)
genderapi_name(
value,
country = NULL,
ai_mode = NULL,
force_to_genderize = FALSE,
id = NULL,
client = genderapi_client()
)
genderapi_email(
value,
country = NULL,
ai_mode = NULL,
force_to_genderize = FALSE,
id = NULL,
client = genderapi_client()
)
genderapi_username(
value,
country = NULL,
ai_mode = NULL,
force_to_genderize = FALSE,
id = NULL,
client = genderapi_client()
)
type |
One of |
value |
The name, email address or username: 1 to 254 characters, not only whitespace, no control characters. |
country |
Optional ISO 3166-1 alpha-2 code in upper case, such as
|
ai_mode |
Optional |
force_to_genderize |
|
id |
Optional item id, 1 to 64 characters. In a batch, ids must be unique and are echoed back in each result. |
client |
A |
genderapi_name(), genderapi_email() and genderapi_username() are
shortcuts for genderapi_gender() with the matching type.
A genderapi_prediction: the parsed V2 JSON as a list with
data (the prediction) and meta (request_id, duration_ms,
access, usage). All fields are kept as sent, including fields added
by future API versions. JSON null becomes NULL. Key fields of
data: gender ("male", "female" or NULL), result_status
("identified" or "unknown"), reason, confidence with
confidence_kind ("observed_frequency" or "model_reported"; not a
calibrated probability), sample_count, source, name, country,
country_source and match. Use as.data.frame() for a one-row data
frame.
genderapi_batch(), genderapi_error
## Not run:
# Sends a request and may consume credits.
res <- genderapi_name("Onur", country = "TR")
res$data$gender
res$data$result_status
res$meta$usage$charged_credits
as.data.frame(res)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.