infer_gender {featurizer} | R Documentation |
Infer gender for list of names fast
Description
This function used a database of names and corresponding gender to lookup the gender of a name. It takes in a vector of names and returns a vector indicating gender for the name. The gender is denoted by "m"/"f"/"u" for male/female/unknown respectively.
Usage
infer_gender(x, detect_cores)
Arguments
x |
The vector of names to perform paralleized inference on |
detect_cores |
If False (default), 2 cores are used. If True, half the number of cores are used on Mac OS else 2 cores are used. |
Value
The a vector with m/f/u if the name in the original vector was male female or Unknown respectively
Examples
infer_gender(x=c("abby", "Nick", "abc"))
[Package featurizer version 0.2 Index]