Hacker News new | past | comments | ask | show | jobs | submit login
PHP Gender Constants (php.net)
3 points by extesy on Aug 13, 2022 | hide | past | favorite | 1 comment



> Gender PHP extension is a port of the gender.c program originally written by Joerg Michael. The main purpose is to find out the gender of firstnames. The current database contains >40000 firstnames from 54 countries.

  class Gender\Gender {
    const int IS_FEMALE = 70;
    const int IS_MOSTLY_FEMALE = 102;
    const int IS_MALE = 77;
    const int IS_MOSTLY_MALE = 109;
    ...
    const int ANY_COUNTRY = 0;
    const int BRITAIN = 1;
    const int IRELAND = 2;
    const int USA = 3;
    ...
  }




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: