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 |