Skip to content

Latest commit

 

History

History
16 lines (10 loc) · 437 Bytes

README.md

File metadata and controls

16 lines (10 loc) · 437 Bytes

Gender Determinator

Determines the gender of german nouns and provides some convenient methods.

Usage

from genderdeterminator import GenderDeterminator, Case

gd = GenderDeterminator()

print(gd.get_gender("Garten"))           # prints "m"
print(gd.get("Garten", Case.NOMINATIVE)) # prints "der Garten" 

Gender determinator uses the eng-deu dictionary by FreeDict to determine the genders.