Declension of Czech Names into Vocative Case

1.2.1 · active · verified Thu Apr 16

The `vokativ` Python library, currently at version 1.2.1, provides functionality for declining Czech proper names into the vocative case. It takes a first-case singular name as input and returns its vocative form as a lowercase unicode string. The library is considered stable (Production/Stable) and was last updated in March 2020.

Common errors

Warnings

Install

Imports

Quickstart

This quickstart demonstrates how to import the `vokativ` function and use it to decline various Czech names and surnames into their vocative case.

from vokativ import vokativ

# Decline a male name
male_name = 'Petr'
vocative_male = vokativ(male_name)
print(f"'{male_name}' in vocative is '{vocative_male}'")

# Decline a female name
female_name = 'Adriana'
vocative_female = vokativ(female_name)
print(f"'{female_name}' in vocative is '{vocative_female}'")

# Decline a surname
surname = 'Novák'
vocative_surname = vokativ(surname)
print(f"'{surname}' in vocative is '{vocative_surname}'")

view raw JSON →