PHP Classes

Detect Gender Hanzi: Detect the gender of name in Hanzi (Kanji) script

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 80 All time: 10,109 This week: 104Up
Version License PHP version Categories
gender-hanzi 1.0.2GNU General Publi...5PHP 5, Text processing, Artificial in...
Description 

Author

This class can detect the gender of name in Hanzi (Kanji) script.

It takes a given name of a person that uses Hanzi characters and attempts to detect the gender from the sum of characters.

The classes determintes gender by comparing the result sum of character weights and compares it to known threshold values.

Picture of Peter Kahl
  Performance   Level  
Name: Peter Kahl <contact>
Classes: 37 packages by
Country: United Kingdom
Age: ???
All time rank: 41521 in United Kingdom
Week rank: 170 Up5 in United Kingdom Up
Innovation award
Innovation award
Nominee: 23x

Winner: 2x

Details

Gender Hanzi

Detects gender of name in Hanzi (Kanji) script.

Usage

use peterkahl\GenderHanzi\GenderHanzi;

echo GenderHanzi::getGender('??'); # M

Acknowledgement

This program is a rework of a script by Wudi, which can be found at <http://blog.wudilabs.org/tag/genderguesser/>.


  Files folder image Files (4)  
File Role Description
Files folder imagesrc (1 file)
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files (4)  /  src  
File Role Description
  Plain text file GenderHanzi.php Class Class source

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:80
This week:0
All time:10,109
This week:104Up