|Ratings|| ||Unique User Downloads|| ||Download Rankings|
| 37%||Total: 209 ||All time: 8,323 This week: 333|
This class can detect a person gender from the name in Latin text.
It takes a given name of a person that uses Latin characters and attempts to detect the gender of the person by evaluating the characters that the the name uses.
The class already knows the gender of a person that uses certain well known names but may guess the gender of the person that uses other names.
|Many sites require that users inform their gender when they register. However, the gender of a person can be deducted from his name.
This class can detect the gender of a person with a name that uses Latin characters.
This way, it is possible to automatically set the gender field after the user enters his name, thus saving the user from being bothered to explicitly set the gender form field.
Detects gender from person's name in Latin script.
Required dependency is
PHP extension Gender.
$latGen = new GenderLatin;
$latGen->firstName = 'Gaétan';
$latGen->lastName = '';
$latGen->country = 'FR';
echo $latGen->getGender(); # M
This library contains code authored by Pete Warden.
||Applications that use this package
No pages of applications that use this class were specified.
If you know an application of this package, send a message to the author to add a link here.