gender-0.1.1.0: Identify a persons gender by their first name

Portabilityportable
Stabilityexperimental
MaintainerKranium Gikos Mendoza <kranium@gikos.net>
Safe HaskellNone

Language.Gender

Description

 

Synopsis

Documentation

defaultDictionary :: IO [(Text, Gender)]Source

Loads the default dictionary file from disk

defaultDictionaryFile :: IO FilePathSource

Default dictionary file: $datadir/nam_dict.txt

parseDictionary :: Text -> [(Text, Gender)]Source

Parses Text with the nam_dict format into a lookup table.

parseDictionaryFile :: FilePath -> IO [(Text, Gender)]Source

Runs parseDictionary from a FilePath