Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.maint.python > #14243 > unrolled thread

Bug#1014908: ITP: gender-guesser -- Guess the gender from first name

Started byEdward Betts <edward@4angle.com>
First post2022-07-14 11:30 +0200
Last post2022-07-14 11:30 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.debian.maint.python


Contents

  Bug#1014908: ITP: gender-guesser -- Guess the gender from first name Edward Betts <edward@4angle.com> - 2022-07-14 11:30 +0200

#14243 — Bug#1014908: ITP: gender-guesser -- Guess the gender from first name

FromEdward Betts <edward@4angle.com>
Date2022-07-14 11:30 +0200
SubjectBug#1014908: ITP: gender-guesser -- Guess the gender from first name
Message-ID<EJ3kt-bfQ8-3@gated-at.bofh.it>
Package: wnpp
Severity: wishlist
Owner: Edward Betts <edward@4angle.com>
X-Debbugs-Cc: debian-devel@lists.debian.org, debian-python@lists.debian.org

* Package name    : gender-guesser
  Version         : 0.4.0
  Upstream Author : Israel Saeta Pérez <israel@lead-ratings.com>
* URL             : https://github.com/lead-ratings/gender-guesser
* License         : GPL-3 & GFDL-1.2+
  Programming Lang: Python
  Description     : Guess the gender from first name

  This package uses the underlying data from the program "gender" by Jorg
  Michael.
  .
  Its use is pretty straightforward:
  .
     >>> import gender_guesser.detector as gender
     >>> d = gender.Detector()
     >>> print(d.get_gender(u"Bob"))
     male
     >>> print(d.get_gender(u"Sally"))
     female
     >>> print(d.get_gender(u"Pauley")) # should be androgynous
     andy
  .
  The result will be one of 'unknown' (name not found), 'andy' (androgynous),
  'male', 'female', 'mostly_male', or 'mostly_female'. The difference
  between 'andy' and 'unknown' is that the former is found to have the same
  probability to be male than to be female, while the later means that the name
  wasn't found in the database.
  .
  I18N is fully supported:
  .
     >>> print(d.get_gender(u"\xc1lfr\xfan"))  # u"Álfrún"
     female
  .
  Additionally, you can give preference to specific countries:
  .
     >>> print(d.get_gender(u"Jamie"))
     mostly_female
     >>> print(d.get_gender(u"Jamie", u'great_britain'))
     mostly_male
  .
  Additionally, you can create a detector that is not case sensitive (default
  is to be case sensitive):
  .
     >>> d = gender.Detector(case_sensitive=False)
     >>> print(d.get_gender(u"sally"))
     female
     >>> print(d.get_gender(u"Sally"))
     female
 
I plan to maintain this package as part of the Python modules team.

[toc] | [standalone]


Back to top | Article view | linux.debian.maint.python


csiph-web