gender

Check a persons gender by their first name


Keywords
lgpl, library, program, Propose Tags, Index, Language.Gender, gender-0.1.1.0.tar.gz, browse, Package description, Package maintainers, KraniumGikos, edit package information
License
LGPL-2.1-only
Install
cabal install gender-0.1.1.0

Documentation

Gender

Identify a person’s gender with their first name

This is a Haskell port of Jörg Michael’s gender.c/nam_dict gender identification library.

Usage

Gender values are stored in the bundled nam_dict.txt file. The library parses this file to a [(Name,Gender)] for lookups.

{-# LANGUAGE OverloadedStrings #-}
import Language.Gender
import Data.Text

main = do
  dict <- defaultDictionary
  let result = lookup "John" dict
  print result

results to:

Just Male

LICENSE

This library LGPL 2
data/nam_dict.txt GFDL 1.2