Haskell port of well-known “petrovich” library for Python and Ruby and Go and so on.
Available at
git clone hbs23://DnzR3EgPTmQ9Gkmjr1t5umiNDVqC67bR4BzKcnYDaTsC petrovich-hs
ghci> let name = fromJust $ parseName "Иванова Татьяна Генриховна"
...
ghci> detectGender name
Just F
-- ruleGen from here:
--data Rule =
-- Rule {
-- ...
-- , ruleNom :: Nom
-- , ruleGen :: Gen
-- , ruleDat :: Dat
-- , ruleAcc :: Acc
-- , ruleIns :: Ins
-- , rulePre :: Pre
-- }
ghci> inclineName ruleGen Nothing name
...