---
title: "Discussion on \"Declining names in poem titles: lessons from generating poems in Slavic languages\" | Hashnode"
description: "Discussion on \"Declining names in poem titles: lessons from generating poems in Slavic languages\". Why \"For {name}\" is an i18n bug in Russian, Polish and Czech, and how to design fallbacks that fail politely"
url: "https://hashnode.com/posts/declining-names-in-poem-titles-lessons-from-generating-poems-in-slavic-languages/6ab918c71018e4260743c12d"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Declining names in poem titles: lessons from generating poems in Slavic languages](https://rhymeu.hashnode.dev/declining-names-in-poem-titles-lessons-from-generating-poems-in-slavic-languages?utm_source=hashnode&utm_medium=feed)

Why "For {name}" is an i18n bug in Russian, Polish and Czech, and how to design fallbacks that fail politely

Sep 27 · 8 min read · rhymeu.hashnode.dev  
Read the article

-   [#localization](https://hashnode.com/tag/localization)
-   [#i18n](https://hashnode.com/tag/i18n)
-   [#nlp](https://hashnode.com/tag/nlp)
-   [#ai](https://hashnode.com/tag/ai)
-   [#linguistics](https://hashnode.com/tag/linguistics)

## Written by

[RhymeU](https://hashnode.com/@rhymeu)

@rhymeu

  
[View profile](https://hashnode.com/@rhymeu)

The RhymeU team, independent developers building a free multilingual personalized-poem generator (29 languages). rhymeu.com

The RhymeU team, independent developers building a free multilingual personalized-poem generator (29 languages). rhymeu.com

## Responses 1

Markdown supported · ⌘↵ to post

[Ahmet Özel](https://hashnode.com/@ahmetozel)

[Oct 9](https://hashnode.com/posts/declining-names-in-poem-titles-lessons-from-generating-poems-in-slavic-languages/6ab918c71018e4260743c12d/comment/6ac88f24909fa27d919c1b01)

The phrase-level fallback is a sensible contract: an uncertain token should not leave a half-declined dedication. I would preserve separators as well as casing when reconstructing accepted forms. Joining every token with a space can change a hyphenated name, an apostrophe, or an initial even when each word was inflected correctly.

Token spans can carry the original separators, with only the word spans replaced. A small boundary guard is also worth adding to the illustrative Russian suffix rule: the final-a branch reads w\[-2\], so a one-character input needs handling before that lookup. These cases belong beside the linguistic trap list because they test input preservation rather than morphology.
