Path: csiph.com!aioe.org!bofh.it!news.nic.it!robomod From: Edward Betts Newsgroups: linux.debian.bugs.dist,linux.debian.devel,linux.debian.maint.python Subject: Bug#1014908: ITP: gender-guesser -- Guess the gender from first name Date: Thu, 14 Jul 2022 11:30:01 +0200 Message-ID: X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org Thu Jul 14 09:24:10 2022 Old-Return-Path: X-Spam-Flag: NO X-Spam-Score: -3.751 Reply-To: Edward Betts , 1014908@bugs.debian.org Resent-To: debian-bugs-dist@lists.debian.org Resent-Cc: debian-devel@lists.debian.org, debian-python@lists.debian.org, wnpp@debian.org X-Debian-Pr-Message: report 1014908 X-Debian-Pr-Package: wnpp MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit X-Debian-Message: from BTS X-Mailing-List: archive/latest/1725029 List-ID: List-URL: Approved: robomod@news.nic.it Lines: 55 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Thu, 14 Jul 2022 10:20:49 +0100 X-Original-Message-ID: <20220714092049.2l67sbd7gsguwcbt@4angle.com> Xref: csiph.com linux.debian.bugs.dist:1109664 linux.debian.devel:104982 linux.debian.maint.python:14243 Package: wnpp Severity: wishlist Owner: Edward Betts 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 * 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.