---
title: "Context-Aware Lexical Stress Prediction and Phonemization for"
description: "How Ukrainian text-to-speech preprocessing uses sentence context to place word stress and ordered pronunciation rules to turn spelling into…"
canonical: "https://research.elamur.ai/free/en/papers/senyk-2025-context-aware-lexical-stress-prediction/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/senyk-2025-context-aware-lexical-stress-prediction/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2025](https://md.research.elamur.ai/free/en/papers/2025/) / Context-Aware Lexical Stress Prediction and Phonemization for Ukrainian TTS Systems

# Context-Aware Lexical Stress Prediction and Phonemization for Ukrainian TTS Systems

Paper · 2025 · Anastasiia Senyk, Mykhailo Lukianchuk, Valentyna Robeiko et al.

**Authors:** [Anastasiia Senyk](https://md.research.elamur.ai/free/en/authors/anastasiia-senyk/), [Mykhailo Lukianchuk](https://md.research.elamur.ai/free/en/authors/mykhailo-lukianchuk/), [Valentyna Robeiko](https://md.research.elamur.ai/free/en/authors/valentyna-robeiko/) and [Yurii Paniv](https://md.research.elamur.ai/free/en/authors/yurii-paniv/) · **Year:** 2025 · **Venue:** Proceedings of the Fourth Ukrainian Natural Language Processing Workshop (UNLP 2025) · **Licence:** [CC BY 4.0 (ACL Anthology)](https://creativecommons.org/licenses/by/4.0/)

Proceedings of the Fourth Ukrainian Natural Language Processing Workshop (UNLP 2025) · [licence](https://creativecommons.org/licenses/by/4.0/)

- [Publisher's page](https://aclanthology.org/2025.unlp-1.11/)
- [PDF](https://aclanthology.org/2025.unlp-1.11.pdf)
- [DOI 10.18653/v1/2025.unlp-1.11](https://doi.org/10.18653/v1/2025.unlp-1.11)

## Summary

Ukrainian spelling typically leaves word stress unmarked. A reader can tell from the surrounding words whether замок means за́мок, a castle, or замо́к, a lock. A text-to-speech system needs to make the same choice before it can pronounce the word as intended. It also has to account for changes that spelling leaves implicit, such as one consonant changing under the influence of its neighbor. The authors build separate components for these tasks. One adds stress to written sentences. The other turns the resulting text into a sequence of speech sounds using ordered rules.

To test stress prediction, the authors assembled a benchmark of 1,026 sentences containing 6,439 distinct written word forms. A native speaker marked primary stress by hand. The data include 300 sentences from Wikipedia, 438 from the Pluperfect GRAC corpus, and 288 new sentences in which a word from the original collection takes an alternative stress. The training data came from a different source. The authors taught a speech recognizer to transcribe Ukrainian with stress marks and used it to label recordings from the Voice of America Ukrainian speech corpus. After filtering, the resulting collection contained approximately 135,000 sentences and around 80,000 unique words. ByT5 learned to insert stress into written text from these automatically labeled examples.

On the hand-annotated benchmark, ByT5 alone stressed 35.3% of sentences fully correctly, compared with 16.6% for Ukrainian Accentor. The highest overall scores came from using Ukrainian Word Stress first and giving ByT5 the words that the dictionary tool left unresolved. That combination reached 52.0% sentence accuracy and 92.5% word accuracy. The dictionary tool with its first-listed fallback performed best on the benchmark’s ambiguous words. The experiment therefore gives different answers depending on whether the goal is to stress entire sentences correctly or to handle a selected set of ambiguous forms.

The pronunciation component, or phonemizer, applies rules for processes such as consonant deletion, assimilation, and changes in the realization of individual sounds. It had a word error rate of 1.23% on a hand-built set of 487 words. On 553 words sampled automatically from the VESUM dictionary, the rate was 3.07% for clearly incorrect forms and 6.15% when disputed cases counted as errors. The simple letter-to-sound baseline reported in the same evaluation had a word error rate of 48.75%. These scores describe the preprocessing outputs. The authors released the benchmark, datasets, and code in the `lang-uk/ukrainian-tts-preprocessing` repository.

## Deep dive: Context-Aware Lexical Stress Prediction and Phonemization for Ukrainian TTS Systems

How Ukrainian text-to-speech preprocessing uses sentence context to place word stress and ordered pronunciation rules to turn spelling into phonemes. · about 33 minutes to read

**In this deep dive**

1. [The problem and its context](#dd-the-problem-and-its-context)
2. [The method, step by step](#dd-the-method-step-by-step)
3. [Experiments and results](#dd-experiments-and-results)
4. [What the ablations show](#dd-what-the-ablations-show)
5. [Limitations](#dd-limitations)
6. [What came after](#dd-what-came-after)

### The problem and its context

#### What Ukrainian spelling leaves for the reader

Text-to-speech, or TTS, takes written text and produces spoken audio. The paper addresses the stage where the written input is prepared for synthesis. Its concern is with decisions a human reader makes so routinely that they can be easy to miss when looking at the page. The spelling of a word identifies much of its pronunciation, but sometimes leaves the stressed syllable open. It can also preserve letters whose corresponding sounds change or disappear in particular surroundings. Giving a synthesizer an explicit representation of these choices makes the preparation step responsible for recovering information that the written sentence only partly specifies.

Lexical stress describes which syllable of a word carries the principal emphasis. In Ukrainian, its location can vary in several ways. Sometimes the alternatives are different words or meanings. The castle and lock readings of замок are an example. Sometimes a change in grammatical form comes with a change in stress. The paper illustrates this with низови́ни, the nominative plural of the word for lowlands, and низовини́, its genitive singular. Their unaccented letters are identical. The distinction depends on the grammatical role the form plays in a sentence. This is one way that [morphology](https://md.research.elamur.ai/free/en/concepts/morphology/) matters for pronunciation.

A further kind of variation occurs when the same word admits more than one stress without a change in meaning. The authors give ба́йдуже and байду́же, both meaning “indifferently.” This case makes a different demand on evaluation. A sentence may provide evidence that distinguishes the castle from the lock, or the nominative plural from the genitive singular. A choice between freely varying pronunciations need not correspond to either kind of distinction. A useful description of the task therefore has to leave room for contextually determined stress, stress stable for a given form, and cases where pronunciation itself allows alternatives.

The pronunciation task starts once the spelling and any stress marks are available. A grapheme is a unit of writing. In the paper’s conversion rules, an individual letter or a sequence of letters can be the spelling unit under consideration. A phoneme is a sound category, and a phonemic transcription represents a word as a sequence of such categories. Grapheme-to-phoneme conversion, abbreviated G2P, produces this sequence from the writing. The authors call the conversion phonemization. Some of the categories their system emits also capture pronunciation variants that they deliberately keep distinct in the output.

A fairly regular writing system can still require substantial phonemization work. Consonants can influence neighboring consonants through assimilation. A cluster, meaning a sequence of consonants, can be pronounced with a segment omitted. A conversion that processes each letter as an independent instruction misses both operations. Stress also has to remain associated with the intended vowel when an annotated word passes through the conversion. These are separate obligations from choosing the stress itself. A sentence can receive the right accents and still yield an inaccurate sound sequence.

The paper situates this work in applications including navigation, language learning, and accessible reading. Its case for explicit preparation is also about where to put the responsibility for linguistic analysis. Direct synthesis from ordinary text would leave the speech system to learn writing regularities and their exceptions from examples. The authors argue that this can demand more training material and make a particular pronunciation harder to adjust after training. A separate text component permits a change in stress assignment or transcription to be expressed before synthesis. The paper investigates the accuracy of those intermediate decisions.

#### What earlier stress systems could use as evidence

A dictionary can answer many stress queries directly. If a spelling has a single listed pronunciation, looking it up may be enough. The Ukrainian Word Stress tool described by the authors goes further when it retrieves more than one candidate. It examines the word’s grammatical role in the sentence and compares it with the information attached to the dictionary entries. For доро́га, “road,” and дорога́, “expensive,” the relevant distinction is between a noun and an adjective. It is a case where [part-of-speech tagging](https://md.research.elamur.ai/free/en/concepts/part-of-speech-tagging/) can contribute directly to selecting a pronunciation.

That strategy depends on entries being available and on their grammatical distinctions being useful. A word absent from the dictionary is out of vocabulary for that resource, even if it is quite intelligible to a reader. A misspelling can cause a similar lookup failure. For forms with multiple listed stresses, grammatical information can settle some cases and leave others open. A tool can return a default pronunciation or leave the position of stress unspecified when the information runs out. Those choices have practical consequences for a pipeline because they determine which decisions can pass to another component.

Earlier learning-based systems approached the coverage problem from the spelling side. The paper describes recurrent approaches that predict stress from the sound representation of a word or from its written form. Ukrainian Accentor follows the latter approach and learns from dictionary data. It can attempt a prediction for a spelling absent from the dictionary. Its basic input is the individual word, so identical spellings give it the same evidence even when the sentences call for different pronunciations. Approaches aimed specifically at homographs, words that share a spelling, have used contextual features or representations. The paper describes those studies as concentrating on selected pairs and requiring extensive labeled examples.

Ukrainian Accentor Transformer had already brought sentence context into Ukrainian stress prediction. It learned from automatically marked text whose labels came from Ukrainian Word Stress. This provided an example of how to scale sentence-level training, while making the dictionary a constraint on the labels available for training. The paper’s other immediate precedent is a Bulgarian study that used automatic speech recognition to produce stress annotations. That route makes the spoken instance part of the evidence used to label a sentence. For a word whose spelling is compatible with more than one stress, the recording may supply information that the written form alone leaves open.

#### Why the authors built a separate pronunciation converter

The paper describes a broad range of earlier G2P approaches, from explicit rules and statistical methods to recurrent, convolutional, and attention-based systems. It presents Ukrainian practice as predominantly rule-based. The authors connect this pattern to two features of the task. High-quality pronunciation dictionaries are scarce, and the spelling already supplies enough of the pronunciation for targeted rules to do useful work. Rules can specify what happens at a particular cluster or around a particular letter without requiring separate examples of every word in which the pattern occurs.

The paper also describes how a rule can do too much. A converter that extends devoicing too broadly can change the consonant in берегти, “keep,” where the authors say the change is inappropriate. Another approach asks the user to insert additional letters in examples such as підземний so the converter can see a morphological boundary that ordinary spelling leaves implicit. At the other end is simple letter mapping, which the discussion illustrates with the Ukrainian treatment in [Epitran](https://md.research.elamur.ai/free/en/papers/mortensen-2018-epitran-precision-g2p-many-languages/). The paper uses these examples to motivate rules with more precise conditions and an input format that accepts ordinary written forms.

The two parts of the study address different gaps in evidence. For stress, the missing resource was a sentence benchmark with trusted annotations and a separate supply of training examples at scale. For pronunciation, the difficulty was expressing and checking the departures from basic letter mapping in a setting with limited pronunciation data. The authors accordingly build the stress component around sentence examples and the phonemizer around a linguistic description of Ukrainian sounds.

### The method, step by step

#### Building a benchmark where context can matter

The first resource the authors assemble is the Ukrainian Lexical Stress Benchmark. The unit presented to a stress predictor is a sentence, and a native speaker marks primary stress in the reference sentences. This is a form of [linguistic annotation](https://md.research.elamur.ai/free/en/concepts/annotation/), the addition of explicit information to a text that previously left it implicit. An annotation gives the evaluation a specific target. A system can be judged on the stress of each eligible word and on whether it gets the whole sentence right.

The authors take 300 sentences from Wikipedia and 438 from Pluperfect GRAC. Wikipedia contributes encyclopedic prose. GRAC is used to add variety in writing style. The authors keep misspellings and words outside the dictionary because inputs of these kinds are part of the problem they want the benchmark to expose. A collection restricted to entries that a dictionary can already recognize would make lookup coverage less visible in the results.

The initial collection gives the authors a starting set of ambiguous words, but a single sentence per spelling is a weak test of disambiguation. A predictor could always emit its favored pronunciation and succeed where that pronunciation happens to be intended. To broaden the test, the authors identify 288 common ambiguous words that each occur only once in the initial collection. They consult Dictionaries of Ukraine for the stress alternatives and write an additional sentence for each word. In the added sentence, the same spelling takes a different stress. This contributes 288 sentences in which the surrounding text is meant to support the alternate reading.

The resulting benchmark consists of 1,026 sentences and includes 6,439 distinct written forms, with grammatical inflections and derivatives among them. A [word form](https://md.research.elamur.ai/free/en/concepts/word-form/) here refers to the spelling as it appears in use, so inflected forms can contribute separately to the count. The paired construction matters because it holds the target spelling constant while varying its surroundings and intended stress. Full sentences also support a broader question than the paired examples alone. A predictor has to keep its routine assignments accurate while encountering the forms that motivated the additional contexts.

#### Turning recorded speech into training annotations

The benchmark serves as a human-annotated test. Creating a much larger collection in the same way would require a separate manual effort. The authors instead set up an automatic annotator that listens to recordings and emits text with accents. Automatic speech recognition, or ASR, ordinarily turns an audio signal into writing. In this setup, the output alphabet includes Ukrainian letters and a stress mark. The recognizer is thus trained to output an accent as part of the written transcription.

Recorded words carry prosodic information. The authors point to pitch, duration, and intonation as potential clues. This information is available to the recognizer while it is producing the training annotations. The eventual text predictor receives written sentences, so its role is to learn which patterns in the text are associated with the annotated stresses. The two components have different inputs even though they both produce accented writing. The recognizer helps create supervision. The text predictor uses that supervision to learn a task it can perform without a recording at inference time.

The recognizer is based on [wav2vec 2.0](https://md.research.elamur.ai/free/en/papers/baevski-2020-wav2vec-2-0-framework-self/), called Wav2Vec2 in the study. To train it, the authors use the Common Voice 19 release, with roughly 30,000 sentences divided into training, development, and test subsets. The starting transcriptions receive automatic stress labels. Ukrainian Word Stress first attempts to assign the accents. Its `OnAmbiguity.Skip` option leaves a word unstressed if the dictionary and grammatical analysis cannot settle the choice. Ukrainian Accentor supplies a prediction when that first tool fails to assign a stress. The speech data used at this stage come from [Common Voice](https://md.research.elamur.ai/free/en/papers/ardila-2019-common-voice-massively-multilingual-speech/).

This procedure gives the recognizer examples of audio paired with accented text, though the accents at the start of the training chain are estimates. The audio offers evidence of how a sentence was pronounced. The paired transcription supplies an example of the output the recognizer is expected to produce. After training, the authors use dictionary lookup to correct the recognizer’s assigned accents. This correction is part of the annotation pipeline and matters when interpreting its measured accuracy. The paper’s reported test performance belongs to that pipeline as described, with acoustic transcription and lexical information both contributing.

The authors then run the trained annotation pipeline on the Ukrainian Voice of America speech corpus. They clean and filter the resulting sentences. The final collection used for text training contains roughly 135,000 stress-marked sentences and around 80,000 unique words. The paper calls this a synthetic corpus because the labels were produced automatically. The speech from which it was derived is recorded broadcast material. This distinction explains both the scale of the data and the kind of uncertainty that remains in its labels.

#### Learning to add stress to written sentences

The text component uses ByT5. The authors refer to their system as ByT5 G2P in the experiments. Its job in the stress pipeline is to return accented text, which can then be used by the separate converter that emits phonemic transcription. A sentence enters as a string, and the output is a version of that string with stress assigned. The representation selected for ByT5 breaks the input into bytes, the units used to encode the text. This lets the same input machinery handle Ukrainian and the accent mark without first constructing a vocabulary of Ukrainian word pieces.

ByT5 has an encoder and a decoder. The encoder processes the input sequence, producing a representation informed by its surroundings. The decoder produces the output sequence. The reason this design is relevant to stress is that a word can be processed in the presence of other words. In the example of замок, the written target itself offers the same sequence of letters in both readings. The rest of the sentence provides evidence with which a sentence-level system can associate the target’s pronunciation. The authors train for the specific task by adapting a system based on the [Transformer and attention](https://md.research.elamur.ai/free/en/concepts/transformer/) architecture.

Training uses normalized text from the Voice of America collection. Normalization puts the examples into a more consistent written format for the training task. In the reported configuration, training lasts 10 epochs and the learning rate is set to 0.0002. An epoch is a pass through the training examples. The learning rate controls the scale of the updates made during training. The authors describe normalization as a way to reduce noise and improve generalization. Their account also makes clear that the user-facing output is intended to recover the original sentence’s presentation.

At inference time, the authors divide a sentence into pieces of up to 150 characters. They introduce this step because long input can be difficult for this encoder–decoder setup. Each piece is processed by ByT5. The result is merged back into the original text so that punctuation, capitalization, and special characters reappear in the output. The practical operation is therefore a combination of sequence prediction and reconstruction. The normalized input gives ByT5 a consistent format, while reconstruction lets the resulting annotation accompany the original written sentence.

The stress predictor can be evaluated alone or placed behind Ukrainian Word Stress. In the combined system, the dictionary tool runs in `OnAmbiguity.Skip` mode. It keeps the assignments it is able to make and passes the remaining stress decisions to ByT5. The same arrangement can be used with Ukrainian Accentor as the fallback. In both combinations, the division of labor is established before a benchmark answer is consulted. The dictionary’s decision to assign or skip a stress determines where the fallback is used.

#### Expressing pronunciation changes as ordered rules

The phonemizer starts from linguistic descriptions of Ukrainian pronunciation. It works internally with a transcription alphabet based on Ukrainian letters, then renders the final sequence using the International Phonetic Alphabet, or IPA. Working in an intermediate alphabet lets the rules recognize and rewrite forms that remain close to the spelling. It also allows the intermediate output of one transformation to be the input for another. The finished transcription uses an inventory of 52 symbols.

The inventory preserves some distinctions that serve the converter’s output even where linguistic analysis might describe the relationship differently. For example, the system records a bilabial realization of в as /w/ and a labiodental realization as /v/. An allophone is a form a sound category takes in a particular pronunciation environment. These realizations receive separate output symbols. The inventory also preserves certain palatalized consonants as separate categories. Palatalization is the quality associated with raising the tongue toward the hard palate. Other details, such as the dental versus alveolar distinctions that the authors describe as noncontrastive in Ukrainian, are left outside the representation.

The authors make another representational choice for gemination, the pronunciation associated with a lengthened or doubled consonant. They represent sequences of identical letters with two occurrences of the same sound category when transcribing a form such as життя, “life.” The resulting sequence can preserve the doubled consonant using the existing inventory. This is a convention for the output of the converter. It allows the system to represent the contrast the authors need without settling the phonological analysis of Ukrainian geminates.

The paper gives the general shape of a context-sensitive rewrite. The rule can be written as follows.

```
L ⟨G⟩ R → P
```

`G` is the written sequence the rule can replace, and the angle brackets mark the part to be rewritten. `L` is the condition immediately to its left, and `R` is the condition to its right. `P` is the replacement sequence in the phonemizer’s working representation. The arrow means that the system substitutes `P` for `G` when the surrounding conditions hold. The left and right contexts constrain the match while staying outside the replaced portion of the string. A replacement can also be empty when the rule deletes a segment.

The implementation uses Python regular expressions, patterns for locating strings that satisfy specified conditions. Lookaround assertions provide the context checks. An assertion tests what stands before or after a match without making those surrounding characters part of the portion that gets replaced. In легко, “easy,” the authors specify a rewrite for г based on what appears around it. This gives a precise way to restrict a change that would be too broad if applied to г wherever it occurs.

The rules reside in ordered Python dictionaries. The converter applies them sequentially to the input string without first breaking it into separate tokens. The order matters because earlier edits change what later expressions can match. Its design is a description of how to derive the transcription through successive changes, beginning with conversions that establish the internal representation, continuing through sound interactions, and ending with the rendering of the resulting symbols.

How ordered rules turn Ukrainian spelling into IPA The steps in order.

The initial mappings deal with letters such as я, ю, є, ї, ь, й, and щ, as well as combinations such as дз and дж. This can expand a letter into a sequence or make the quality of a neighboring consonant explicit. For щука, “pike,” the initial treatment of щ exposes a sequence corresponding to ш and ч. In яблуко, “apple,” the rule for initial я makes the initial glide explicit. In синю, “blue,” the intermediate representation allows the consonant before ю to acquire a palatalization mark. These examples help explain why the initial pass includes both matches on individual letters and operations whose interpretation depends on position.

Consonant cluster reduction removes a segment from a qualifying group. The authors illustrate it with the spelling of the word for “student” in adjectival form, where a consonant disappears inside the cluster, and with невістчин, a form referring to a daughter-in-law. Reduction in невістчин exposes a new consonant sequence. That sequence can then match a later assimilation rule. A special conversion for the ending -ться takes place before ordinary cluster reduction. The paper uses робиться, “is being done,” to illustrate the conversion of the ending into a sequence with doubled palatalized ц.

Voicing assimilation follows the reduction stage. Voicing concerns whether the vocal folds vibrate in the production of a consonant. In the authors’ example боротьба, “fight,” the consonant before б is replaced by a voiced counterpart. In зсипати, “pour,” the sequence at the beginning changes in the other direction. The paper then treats assimilation among sibilants, the consonants that include hissing and hushing sounds. In льотчик, “pilot,” the consonant before ч changes so that the output has a doubled consonant of the following kind. A subsequent stage handles the spread of palatalization, illustrated by сьогодні, “today.”

The final class of context-sensitive rules handles allophonic realization. In вовк, “wolf,” the two written occurrences of в can correspond to different sounds, and the working representation distinguishes the final realization within the consonant sequence. In гілка, “branch,” the converter marks the quality of г before proceeding to IPA. The final rendering step maps the symbols of this working alphabet to the chosen output notation. By tracking distinctions before the final rendering, rules earlier in the sequence can operate on intermediate forms that make their relevant context visible.

#### Following an entire word through the converter

The paper traces шістдесят, “sixty,” because it brings several parts of the procedure together. The first operations expand я through an intermediate form with a glide and then mark the preceding consonant as palatalized. The result still contains the consonant sequence стд. The reduction rule removes т, leaving с directly before д. The voicing rule can now act on that adjacency and replace с with з. The allophonic stage changes the representation of the initial ш before the conversion into IPA is completed.

The trace illustrates a practical dependency. An expression looking for с before д would have no such match in the written word until the cluster reduction occurred. Similarly, a change to the internal representation of я gives later stages a different sequence from the one seen in ordinary orthography. The rules collectively derive a pronunciation by updating the context available to the next rule. The hand-designed order is part of what specifies the converter’s behavior.

The converter accepts text with or without stress marks. Accents can come from the automatic stress component or be supplied by the user. The paper explains that its rules do not use the location of stress as an independent phonological condition. Written accents still have to be accounted for in a pattern. For example, a rule targeting г may have to recognize both the marked context in ле́гко and the unmarked sequence before г in легки́й. This is where the two components meet in the implementation. The stress mark conveys useful output information and also changes the string that a regular expression encounters.

### Experiments and results

#### How the stress evaluations are read

The paper reports a test of the speech annotation pipeline and a separate evaluation of predictors that operate on written Ukrainian. The first asks how accurately a trained, dictionary-corrected recognizer assigns stress on the Common Voice test subset. The second uses the manually accented sentence benchmark. A third figure, the character error rate reported for ByT5, describes sequence prediction in the account of its Voice of America training setup. Keeping these evaluations distinct is important because the reported values answer different questions about the method.

The Common Voice pipeline reaches 93.81% word accuracy and 72. On its test subset, sentence-level accuracy is 00%. Words with fewer than two vowels are excluded from the stress evaluation. The former figure measures the proportion of eligible words with correctly placed stress. The latter requires the assignments for an evaluated sentence to be correct together. These figures characterize the annotation pipeline used to prepare larger-scale training material. The paper separately reports a character error rate of 0.58% for ByT5 in its training account. Character error rate concerns discrepancies in the predicted and reference text at the character level. The paper does not identify a named split for this figure in that account.

For the main stress comparison, a word is counted as correct when its stress matches the benchmark assignment. As in the recognizer evaluation, words with fewer than two vowels are left outside the measure. A sentence earns credit when its evaluated words all have the correct stresses. A system can have a high rate of correct words and still leave many sentences with a correction to make. The word and sentence metrics reveal those aspects of performance separately. They also give the impact of any single incorrect assignment a different scope.

The paper also divides the scored words into ambiguous and unambiguous groups. The ambiguous group consists of forms classified as having more than one stress because of meaning or grammatical inflection. The unambiguous group consists of forms classified as having one valid stress for the given written form. These classifications use the dictionary employed by Ukrainian Word Stress. Ambiguous word accuracy measures correctness across the examples in its group. The mean macro F1 for ambiguous pairs summarizes how the system does across pairs. F1 combines precision, which concerns the correctness of predictions made for a class, with recall, which concerns coverage of the reference cases for that class. A macro average gives the grouped scores a separate contribution to the overall measure.

#### Systems compared on the same sentences

Ukrainian Accentor predicts stress from individual written forms. Ukrainian Accentor Transformer uses context and was trained using labels derived from Ukrainian Word Stress. The dictionary system itself is tested with both `OnAmbiguity.First` and `OnAmbiguity.Skip`. Both settings use the lookup and grammatical disambiguation. The difference is what they return when that analysis leaves alternatives open. `First` chooses the first retrieved stress and `Skip` returns the word without an assigned stress.

The authors compare those systems with ByT5 on its own and with two combinations in which the dictionary tool runs first. One combination uses ByT5 as fallback and the other uses Ukrainian Accentor. This makes it possible to examine the role of the choice to skip as well as the role of the component that handles skipped cases.

Sentence-level accuracy on the Ukrainian Lexical Stress Benchmark The dictionary-first system with ByT5 fallback delivers the most fully correct sentences.

**The numbers**

| System or setting | accuracy % |
| --- | --- |
| Ukrainian Accentor | 16.6 |
| Ukrainian Accentor Transformer | 26.9 |
| Ukrainian Word Stress (Skip) | 32.5 |
| ByT5 | 35.3 |
| Ukrainian Word Stress (First) | 41.5 |
| Ukrainian Word Stress (Skip) with Ukrainian Accentor | 48.8 |
| Ukrainian Word Stress (Skip) with ByT5 (this paper) | 52.0 |

The chart shows that the ranking among the stand-alone systems differs from the ranking when the dictionary and a learned fallback share the work. Ukrainian Word Stress with `First` has the highest sentence accuracy among the stand-alone configurations, at 41.5%. It is followed by ByT5 at 35.3% and Ukrainian Word Stress with `Skip` at 32.5%. The sentence-level ordering of those configurations makes sense for an application that needs every eligible word assigned. A dictionary system that leaves an unresolved word blank leaves the sentence incomplete for the purposes of the test.

The word accuracy figures provide a complementary comparison. ByT5 reaches 87.7%. The stand-alone Ukrainian Accentor obtains 73.2%, and Ukrainian Accentor Transformer obtains 83.4%. Ukrainian Word Stress records 88.7% with `First` and 86.0% with `Skip`. With the dictionary in `Skip` mode, Ukrainian Accentor as fallback brings word accuracy to 91.9% and ByT5 brings it to 92.5%. The dictionary-first combinations occupy the top positions on both overall measures. The advantage of supplying a fallback is visible even when the fallback by itself scores below the dictionary configuration.

The unambiguous cases show a different ordering of the stand-alone systems. Ukrainian Accentor has 78.7% accuracy in this group. ByT5 has 94.8%, and Ukrainian Accentor Transformer has 96.3%. The authors suggest that training on dictionary-derived annotations may account for the transformer’s advantage over ByT5 here. Both stand-alone Ukrainian Word Stress settings have 98.6% unambiguous word accuracy. Both dictionary-first combinations have 98.7%. The effect of changing the stand-alone dictionary fallback appears elsewhere because `First` and `Skip` make the same decision whenever the dictionary analysis returns a settled answer.

There are still errors in the unambiguous group for the tools that use the dictionary directly. The authors attribute this to inconsistencies in the dictionary and to the way the tool prioritizes capitalized forms over lower-case forms. Knowing that the dictionary recognizes a single stress pattern for a form in the benchmark’s classification does not establish that every lookup in the evaluation will retrieve and apply that information as expected. Capitalization choices and the internal consistency of the entries can affect the outcome of the lookup procedure.

#### What happens on ambiguous words

Ambiguous word accuracy on the Ukrainian Lexical Stress Benchmark Selecting the first listed variant when lookup remains unresolved gives the strongest result on the ambiguous subset.

**The numbers**

| System or setting | accuracy % |
| --- | --- |
| Ukrainian Accentor | 41.6 |
| Ukrainian Word Stress (Skip) | 42.3 |
| Ukrainian Accentor Transformer | 43.7 |
| ByT5 | 58.1 |
| Ukrainian Word Stress (Skip) with Ukrainian Accentor | 59.1 |
| Ukrainian Word Stress (Skip) with ByT5 | 61.0 |
| Ukrainian Word Stress (First) (this paper) | 64.3 |

Ukrainian Word Stress with `First` leads the ambiguous subset with 64.3% accuracy. The dictionary with ByT5 fallback reaches 61.0%, and the dictionary with Ukrainian Accentor fallback reaches 59.1%. ByT5 by itself records 58.1%. Ukrainian Accentor Transformer has 43.7%, Ukrainian Word Stress with `Skip` has 42.3%, and Ukrainian Accentor has 41.6%. The chart is useful in conjunction with the sentence result because the system that leads on the selected ambiguous instances is different from the one that gives the most entirely correct sentences.

The pair-level measure follows the same broad pattern near the top. Ukrainian Word Stress with `First` reaches 47.3% mean macro F1 for ambiguous pairs. The combination with ByT5 delivers 46.7%, and the combination with Ukrainian Accentor delivers 46.3%. ByT5 alone records 37.2%. The remaining scores are 35.7% for Ukrainian Word Stress with `Skip`, 32.4% for Ukrainian Accentor Transformer, and 28.7% for Ukrainian Accentor. Reporting accuracy alongside this pair-level measure gives two views of the ambiguous cases. A configuration must be judged both on how frequently its individual decisions are correct and on how its results are distributed across paired pronunciations.

The authors credit part of the dictionary system’s result to its grammatical disambiguation. They also emphasize the fallback to a listed stress when the grammatical analysis is inconclusive. Both sources contribute to the `First` score. The aggregate result includes instances where the pronunciation was selected after analyzing the context and instances where the first entry happened to agree with the reference. This matters when reading the benchmark as a test of contextual stress prediction. Every correct output counts, while the reason for choosing it can differ across systems and across words.

#### Phonemization accuracy on isolated words

The phonemizer is evaluated against expert-reviewed transcriptions using two collections. The first is a hand-built set of 487 words selected to cover varied phonemes and segment combinations. The second is a set of 553 words generated automatically from the VESUM dictionary. Expert linguists review both. The unit of comparison is an entire word transcription. In this setting, the word error rate, or WER, is the proportion of tested words judged to have an erroneous transcription. A word with an incorrect sound sequence counts as an error even when the rest of its sequence agrees with the reference.

The paper distinguishes clearly incorrect outputs from controversial ones. The first judgment applies when a transcription conflicts with the pronunciation rules the authors use as their reference. The second covers cases where the current rule set does not explicitly handle the form and the preferred transcription is less readily settled by it. The authors report that each word exhibited at most a single error type. They therefore report the word measure without a separate phoneme error rate, which would count discrepancies at the level of individual speech sounds.

On the 487-word hand-built set, the phonemizer has a WER of 1.23%. The set excludes controversial cases. On the 553-word VESUM set, the WER is 3.07% when only clear errors count, and 6.15% when controversial transcriptions are also counted. These are two readings of the same automatically assembled set under different criteria. The stricter criterion estimates how frequently an output is judged clearly wrong. Counting both kinds of cases widens the measure to cover the forms that present unresolved problems for the rule inventory.

The baseline uses basic correspondences between letters and phonemes and has a reported WER of 48.75%, counting incorrect cases. The paper lists this as a baseline result without assigning it to one of the named sets in the results table. The authors take the high error rate as evidence that many evaluated words require changes beyond letter mapping. They attribute the especially low error rate on the manually constructed set partly to its omission of abbreviations and difficult consonant clusters, categories that can produce errors in their system.

The individual mistakes provide a clearer picture of the task than the WER alone. The converter treats the consonants in надзвонюватимемся, “we will call,” in a way that adds an extra sibilant segment relative to the reference. In ексдипломатів, “former diplomats,” it fails to produce the voiced consonant expected in the cluster. For a controversial output, the paper discusses the name Ваньчжоу, “Wanzhou,” where it favors a transcription with a simpler consonant sequence. It also discusses Держспоживслужба, where it regards a different sibilant realization as preferable. These examples distinguish rules that misfire in covered territory from forms whose treatment would require extending or revising the system’s coverage.

### What the ablations show

#### What the comparisons actually vary

The paper reports no formal component-removal ablation, but compares dictionary fallback policies, alternative stress predictors in the same fallback position, splits by ambiguity, and ordered phonemization against simple letter mapping.

The cleanest controlled stress comparison changes what the dictionary system does once its attempt at disambiguation has run out. `First` and `Skip` share the use of entries and grammatical features. Their unambiguous word accuracy is the same, at 98.6% on the benchmark, while their ambiguous word scores diverge. With `First`, the tool gets 64.3% of ambiguous words correct. With `Skip`, it gets 42.3% correct. For sentence accuracy, the corresponding scores are 41.5% and 32.5%. The difference demonstrates the scoring value of making a plausible assignment when the analysis cannot establish a unique candidate.

The interpretation of that comparison depends on the evaluation policy. A skipped ambiguous word is left without the required mark, while an uncertain choice can be scored correct if it agrees with the reference. As a consequence, the comparison tests the consequences of selecting a listed candidate under a full-assignment objective. It does not isolate how much information the dictionary obtained from grammar. The authors’ explanation relies on both the value of grammatical disambiguation when it succeeds and the value of consistently choosing a plausible candidate after it fails.

The fallback comparison holds fixed the dictionary configuration and changes the tool used for the open positions. With Ukrainian Accentor, the combined system reaches 48.8% sentence accuracy and 91.9% word accuracy. With ByT5, it reaches 52.0% and 92.5% on those respective measures. Both combinations reach 98.7% accuracy for unambiguous words. This comparison locates the advantage of the ByT5 combination within the setting in which the same dictionary runs first. It also shows that Ukrainian Accentor, in spite of its lower stand-alone scores, can make a productive contribution when it handles only the portion sent to it.

The comparison against the stand-alone systems gives a view of coverage. ByT5 is asked to annotate all eligible words when tested by itself. When used as fallback, it supplies only assignments that the dictionary tool did not make. The combined system can therefore benefit from accurate lookups on many ordinary forms while still making a prediction on harder cases. The benchmark reports the resulting whole-system scores. It does not break down all fallback calls by why the dictionary declined them, so the improvement cannot be assigned precisely to unknown words, unresolved heteronyms, or other cases.

#### How far the results explain contextual gains

ByT5’s stand-alone accuracy on ambiguous words is 58.1%, compared with 41.6% for Ukrainian Accentor. The result is consistent with the motivation for presenting sentence context to the predictor. The comparison with Ukrainian Accentor Transformer, which reaches 43.7% on that subset, also shows that the way a context-sensitive system is built and trained matters. The context-sensitive approaches differ in their training material as well as how they use the input. Their comparison measures the approaches as implemented, without holding labels and architecture fixed.

The same stand-alone comparison has a different outcome on unambiguous words. Ukrainian Accentor Transformer reaches 96.3% on them, while ByT5 reaches 94.8%. The authors point to the transformer’s dictionary-derived supervision as a possible reason. That explanation is plausible in this benchmark because the unambiguous category is itself based on the source dictionary. It remains an explanation for the observed score pattern. The paper does not train the same system with and without dictionary-derived labels while keeping its other settings the same.

The added example for each selected ambiguous spelling makes the benchmark informative about whether systems can handle different accent assignments for the same letters. For the paired F1 metric, a system’s output on the alternative form matters to its performance across the pair. The paper does not publish a further split between cases decided principally by the meaning of the sentence and those decided by inflectional grammar. The reported pair-level and ambiguous-word metrics support conclusions about combined performance across those cases. They offer less detail about the particular contextual clues responsible for a given correct decision.

The difference between the best overall system and the best ambiguous-word system helps explain why the paper reports several metrics. The ByT5 combination makes the best full sentences and has the highest overall word accuracy. The first-listed dictionary strategy attains the best ambiguous accuracy and mean macro F1 for the paired cases. A benchmark with a targeted ambiguous subset can reveal this reversal. On complete sentences, mistakes on all eligible words matter, including forms that neither require a heteronym decision nor contribute to the paired score.

#### What the phonemization analysis identifies

The simple mapping baseline contrasts with the full rule system. The baseline goes from letters to sounds by direct correspondences. The developed converter additionally interprets letter combinations, deletes consonants in qualifying clusters, applies assimilation, and represents contextual sound variants. The much higher reported baseline WER supports the inclusion of context-sensitive operations for the evaluated material. The comparison treats the rule system as a package. The paper gives no error rate for disabling reduction, voicing assimilation, or any other rule family on its own.

The trace for шістдесят is an analysis of how order changes what becomes possible. With т still present, the с is separated from д. Reduction makes them adjacent and creates the context for the voicing rewrite. This demonstrates an interaction in an actual word. It does not quantify how many evaluation errors would arise from reversing the two rule groups. The examples of incorrect output also show where to look for interactions. When a consonant combination acquires an extra segment or retains the wrong voicing, the successive representations give a way to describe how the error arose.

On the VESUM set, counting disputed outputs alongside clear errors changes WER from 3.07% to 6.15%. This is a comparison of scoring policies applied to the same system, instead of a change in its transformation rules. It shows how the treatment of difficult cases shapes the reported error rate. The manual set’s 1.23% comes from a collection assembled under different conditions, with controversial cases excluded and with a different purpose for its word selection. It is therefore evidence about a distinct test set. The reported evaluations together show how the system performs under different kinds of coverage and judgment.

### Limitations

#### Limits identified by the authors

The authors identify limited exposure to heteronyms as a constraint on the stress predictor. A large automatic corpus can contain many distinct words while still offering few useful contexts for the alternate pronunciations of a specific spelling. An uncommon reading can remain scarce even where the spelling itself appears often. To learn from such an example, the system also needs the automatic annotator to assign the relevant accent correctly. The authors name both sparse coverage and dependence on speech-recognizer labels as limitations. They identify richer representation of heteronyms in training material as a direction for improvement.

The phonemizer is a word-level system. Its regular expressions scan an input string, but the linguistic decisions described in the paper concern words and the environments of sounds within them. The authors say the system does not handle abbreviations or numerical expressions. They associate such cases with irregular or ambiguous pronunciation patterns requiring context or morphological information beyond what the current rules use. Applying word-based conversions across a longer string therefore does not by itself supply the linguistic analysis required for every sentence-level pronunciation decision.

Rule maintenance is another limitation the authors state. Each added rule has a context and an effect on the intermediate string, and an output that seems correct in isolation can create a match somewhere else in the sequence. A more extensive rule inventory can consequently be harder to maintain. The converter’s use of a fixed, carefully chosen order addresses the interactions described in the method. It still leaves rule interactions as a source of potentially unexpected behavior when the inventory changes or meets unfamiliar material.

Neither part of the system accounts for regional dialects and other nonstandard varieties, according to the authors. Retaining misspellings in the stress benchmark gives the test some exposure to imperfect input. That is a different form of coverage from representing distinct regional pronunciations. The phonemizer’s rules reflect the linguistic descriptions on which the authors base the converter, and the stress evaluation follows the manual references and dictionary categories defined for the study. The authors also identify complete transcriptions of running text as a subject for future evaluation.

#### Limits visible in the setup

The study measures the quality of text preparation and phonemic transcription. It does not report a listening evaluation of synthesized utterances or a comparison of complete TTS systems before and after adding the components. A low phonemization WER indicates that the word transcriptions agree with the evaluation criteria on that set. A high sentence stress score indicates that more benchmark sentences receive the full reference pattern. Those are meaningful intermediate outcomes. They leave open how frequently listeners would notice the remaining errors and how much improvement would carry through a particular synthesizer.

The stress benchmark is deliberately enriched with alternate readings. This makes it possible to test more than whichever pronunciation appears first in a source collection. It also means that the mix of difficulties has been shaped by the way the authors selected and wrote examples. Sentence accuracy on that collection measures performance for its sentences and distribution of forms. The paper does not establish that the same proportion of naturally encountered sentences would be fully correct in a deployment domain with a different mix of ambiguities, misspellings, and dictionary coverage.

The benchmark definition of ambiguity depends on the dictionary used by the dictionary baseline. This is relevant to interpreting both the strengths and the weaknesses of the systems being compared. The test can answer how well they handle forms designated as ambiguous under that resource. The paper does not report an alternative grouping from independently assigned ambiguity labels. The existence of free stress variation also makes the difference between a reference annotation and a set of all acceptable pronunciations important. The results do not include a separate account of how evaluation would change if alternative acceptable pronunciations were scored together for such cases.

The Common Voice accuracy figures characterize the annotation pipeline on its test subset there. The synthetic corpus is produced from Voice of America recordings after further cleaning and filtering. The paper does not provide a separate manual audit of the Voice of America annotations or a measure of the annotator’s accuracy on each ambiguous reading in that corpus. The training data may still support useful learning, as the benchmark results indicate. Its size and the upstream test scores do not measure how frequently the particular contextual distinctions studied in the benchmark were labeled correctly in the final training collection.

The inference limit of up to 150 characters means that the sentence-level predictor may operate on part of a sentence at a time. Within each chunk, words can inform one another. Evidence in a different chunk is outside the input for that prediction. The paper does not report results by sentence length, placement of the target within a chunk, or distance between a word and the cue that determines its stress. The results establish how the configured system performed on the benchmark without isolating how frequently chunking changed a decision.

For pronunciation, the word sets give evidence about isolated transcription. The manual set emphasizes phonemic diversity and omits controversial examples. The automatic set presents a different sample of dictionary forms and admits a wider scoring comparison. Neither set determines how transcription errors are distributed across a continuous passage. The absence of a separate phoneme-level score also leaves questions about error severity at the sound level. Word error rate treats a transcription as incorrect once it contains an error, so it cannot by itself distinguish a small segment discrepancy from a more extensive departure in the affected word.

### What came after

No later studies are documented here that build on the benchmark, reuse the speech-derived stress annotations, or extend the phonemizer. The authors’ stated plans concern broader coverage of heteronyms, evaluation on running text, and the possibility of sentence-level phonemization. Those plans identify questions left open by the paper. There is no documented follow-up result to report for them.

## Cite

Cite as Anastasiia Senyk, Mykhailo Lukianchuk, Valentyna Robeiko and Yurii Paniv. 2025. Context-Aware Lexical Stress Prediction and Phonemization for Ukrainian TTS Systems. Proceedings of the Fourth Ukrainian Natural Language Processing Workshop (UNLP 2025).

The paper itself, not this page. BibTeX from the library's record of the work. [DOI 10.18653/v1/2025.unlp-1.11](https://doi.org/10.18653/v1/2025.unlp-1.11)

```bibtex
@inproceedings{senyk2025context,
  title = {{Context-Aware Lexical Stress Prediction and Phonemization for Ukrainian TTS Systems}},
  author = {Anastasiia Senyk, Mykhailo Lukianchuk, Valentyna Robeiko and Yurii Paniv},
  booktitle = {Proceedings of the Fourth Ukrainian Natural Language Processing Workshop (UNLP 2025)},
  year = {2025},
  doi = {10.18653/v1/2025.unlp-1.11},
  url = {https://doi.org/10.18653/v1/2025.unlp-1.11}
}
```

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://research.elamur.ai/sitemap.xml) · [llms.txt](https://research.elamur.ai/llms.txt)
