genderapy package

Submodules

genderapy.genderAPY module

genderapy.genderAPY.female_probability(name, country_id=None, language_id=None, ip=None, return_sample_size=False, key=None)[source]

Return the probability of the given name being female

Keyword arguments:

  • name – The name to lookup (mandatory, no default)
  • country_id – Restrict name lookup for a specific country (default: None)
  • language_id – Restrict name lookup for a specific language (default: None)
  • ip – Deduce the locale for the name lookup from the given ip address (default: None)
  • return_sample_size – If true, the return value is a tuple consisting of (female_probability, sample_size) (default: False)
  • key – The API key for registered accounts (default: None)
genderapy.genderAPY.genderize(name, country_id=None, language_id=None, ip=None, key=None)[source]

Query the gender of the given name with the given options

Keyword arguments:

  • name – The name to lookup (mandatory, no default)
  • country_id – Restrict name lookup for a specific country (default: None)
  • language_id – Restrict name lookup for a specific language (default: None)
  • ip – Deduce the locale for the name lookup from the given ip address (default: None)
  • key – The API key for registered accounts (default: None)
genderapy.genderAPY.genderize_all(names, country_id=None, language_id=None, ip=None, key=None)[source]

Query the gender of the given names with the given options

Keyword arguments:

  • names – The list of names to lookup (mandatory, no default)
  • country_id – Restrict name lookup for a specific country (default: None)
  • language_id – Restrict name lookup for a specific language (default: None)
  • ip – Deduce the locale for the name lookup from the given ip address (default: None)
  • key – The API key for registered accounts (default: None)
genderapy.genderAPY.is_female(name, country_id=None, language_id=None, ip=None, key=None)[source]

Check if the given name is female

Keyword arguments:

  • name – The name to lookup (mandatory, no default)
  • country_id – Restrict name lookup for a specific country (default: None)
  • language_id – Restrict name lookup for a specific language (default: None)
  • ip – Deduce the locale for the name lookup from the given ip address (default: None)
  • key – The API key for registered accounts (default: None)
genderapy.genderAPY.is_male(name, country_id=None, language_id=None, ip=None, key=None)[source]

Check if the given name is male

Keyword arguments:

  • name – The name to lookup (mandatory, no default)
  • country_id – Restrict name lookup for a specific country (default: None)
  • language_id – Restrict name lookup for a specific language (default: None)
  • ip – Deduce the locale for the name lookup from the given ip address (default: None)
  • key – The API key for registered accounts (default: None)
genderapy.genderAPY.male_probability(name, country_id=None, language_id=None, ip=None, return_sample_size=False, key=None)[source]

Return the probability of the given name being male

Keyword arguments:

  • name – The name to lookup (mandatory, no default)
  • country_id – Restrict name lookup for a specific country (default: None)
  • language_id – Restrict name lookup for a specific language (default: None)
  • ip – Deduce the locale for the name lookup from the given ip address (default: None)
  • return_sample_size – If true, the return value is a tuple consisting of (male_probability, sample_size) (default: False)
  • key – The API key for registered accounts (default: None)
genderapy.genderAPY.possessive_determiner(name, country_id=None, language_id=None, ip=None, key=None)[source]

Return the possessive determiner (‘his’ or ‘her’; see http://en.wikipedia.org/wiki/Possessive_determiner for more) for the given name

Keyword arguments:

  • name – The name to lookup (mandatory, no default)
  • country_id – Restrict name lookup for a specific country (default: None)
  • language_id – Restrict name lookup for a specific language (default: None)
  • ip – Deduce the locale for the name lookup from the given ip address (default: None)
  • key – The API key for registered accounts (default: None)
genderapy.genderAPY.third_person_personal_pronoun(name, country_id=None, language_id=None, ip=None, key=None)[source]

Return the third person singular personal pronoun (‘he’, ‘she’ or ‘it’; see http://en.wikipedia.org/wiki/Personal_pronoun for more) for the given name

Keyword arguments:

  • name – The name to lookup (mandatory, no default)
  • country_id – Restrict name lookup for a specific country (default: None)
  • language_id – Restrict name lookup for a specific language (default: None)
  • ip – Deduce the locale for the name lookup from the given ip address (default: None)
  • key – The API key for registered accounts (default: None)

Module contents

Table Of Contents

This Page