Check a persons gender by their first name
Haskell
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Language
data
tests
LICENSE
LICENSE-DATA
README.org
gender.cabal
gender.hs

README.org

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 libraryLGPL 2
data/nam_dict.txtGFDL 1.2