PHP Classes

File: README.md

Recommend this page to a friend!
  Classes of Peter Kahl   PHP Detect Gender Latin   README.md   Download  
File: README.md
Role: Documentation
Content type: text/markdown
Description: Documentation
Class: PHP Detect Gender Latin
Detect a person gender from the name in Latin text
Author: By
Last change: Update of README.md
Date: 4 years ago
Size: 441 bytes
 

Contents

Class file image Download

Gender Latin

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.