genderpyze package

Submodules

genderpyze.genderpyze module

genderpyze.genderpyze.female_probability(name, country_id=None, language_id=None, return_sample_size=False)[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)
  • return_sample_size – If true, the return value is a tuple consisting of (female_probability, sample_size) (default: False)
genderpyze.genderpyze.genderize(name, country_id=None, language_id=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)
genderpyze.genderpyze.genderize_all(names, country_id=None, language_id=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)
genderpyze.genderpyze.is_female(name, country_id=None, language_id=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)
genderpyze.genderpyze.is_male(name, country_id=None, language_id=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)
genderpyze.genderpyze.male_probability(name, country_id=None, language_id=None, return_sample_size=False)[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)
  • return_sample_size – If true, the return value is a tuple consisting of (male_probability, sample_size) (default: False)

Module contents

Table Of Contents

This Page