peterkahl/gender-latin

Detects gender from person's name in Latin script.

v1.0 2019-10-12 06:52 UTC

README

Downloads License If this project has business value for you then don't hesitate to support me with a small donation.

Detects gender from person's name in Latin script.

Dependency

Required dependency is PHP extension Gender.

Usage

use peterkahl\GenderLatin\GenderLatin;

$latGen = new GenderLatin;
$latGen->firstName = 'Gaétan';
$latGen->lastName  = '';
$latGen->country   = 'FR';

echo $latGen->getGender(); # M

Acknowledgement

This library contains code authored by Pete Warden.