Skip to content
This repository has been archived by the owner on Apr 15, 2024. It is now read-only.
/ genderer Public archive

Java library to determine gender or vocative form name by name in Czech language.

Notifications You must be signed in to change notification settings

trisbee/genderer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 

Repository files navigation

Genderer

Java library to determine gender or vocative form name by name in Czech language.

Usage

Two classes provides methods which search passed name in tables, returns most occurrence case.

Genderer class

Methods returns gender. Returned value is Gender enumeration. Examples:

firstName("Petr")  Returns Gender "MALE".
surname("Procházková")  Returns Gender "FEMALE".
firstNameAndSurname("Petra" "Nováková")  Returns Gender "FEMALE".
firstNameAndSurname("Jiří" "Svobodová")  Returns null.
firstNameAndSurname_preferFirstName("Jiří" "Svobodová")  Returns Gender "MALE".
firstNameAndSurname_preferSurname("Jiří" "Svobodová")  Returns Gender "FEMALE".

Inflectioner class

Methods returns vocative form name. Examples:

firstName("Věra")  Returns String "Věro".
surname("Procházka")  Returns String "Procházko".
firstNameAndSurname("Tomáš" "Kučera")  Returns String "Tomáši Kučero".
firstNameAndSurname("Tomáš" "Xyz")  Returns String "Tomáši Xyz".
firstNameAndSurname_bothNamesVocative("Tomáš" "Xyz")  Returns null.

Database queries execution needs

DatabaseConnection constructor receiving instrument to connect to database. This instrument should implement Database interface.

Data source

Data source comes from the government official database (MVCR) with contributing of authors working on Genderer project.

About

Java library to determine gender or vocative form name by name in Czech language.

Resources

Stars

Watchers

Forks