Note To add accents to a text, use ukrainian-word-stress. This package is much smarter compared to just dictionary.
This dictionary lists word stresses for 2,931,496 word forms and phrases in the Ukrainian language.
We use the COMBINING ACUTE ACCENT
(U+0301
) sign to denote the stress. This sign comes after the stressed
vowel. For example, the following characters form the word ма́ма
:
>>> chars = ['м', 'а', '\u0301', 'м', 'а']
>>> print("".join(chars))
ма́ма
Words that have multiple valid options of stressed syllables have multiple
accent signs in them (по́ми́лка
).
This dictionary is based on "Dictionaries of Ukraine" by ULIF.