Dictionary of heteronyms in the Ukrainian language

This dictionary contains words that have different pronunciations and meanings but the same spelling (heteronyms)

Sometimes this happens when words have completely different meanings:

  • а́тлас - збірник карт
  • атла́с - тканина

But the majority of heteronyms are words that exhibit stress alternation when used in different forms (singular/plural, case). For example:

  • блохи́ - родовий відмінок в однині ("немає ані блохи́")
  • бло́хи - множина називного відмінку ("повсюди були бло́хи")

File format

Each heteronym group takes one line. The format of one line is as follows:

headword [TAB] heteronym1,heteronym2

headword is a word without the accent sign, as it is usually spelled in writing. heteronym1, heteronym2 showcase the different pronunciations. There might be more than just two. The stressed vowel in these words is followed by the Unicode symbol COMBINING ACUTE ACCENT.

Here's Python code that parses the dictionary:

dictionary = {}
with open("heteronyms.tsv") as f:
    for line in f:
        line = line.rstrip("\n")
        headword, heteronyms = line.split("\t")
        dictionary[headword] = heteronyms.split(",")

print(dictionary["пташки"])
# Out: ['пташки́', 'пта́шки']

Source

This dictionary was generated by Олексій Сивоконь. Based on "Dictionaries of Ukraine" by ULIF.