A word can be moved, but it can't be changed
Putting a variable in a whole sentence lets the translator move it, but the word that arrives at runtime still has a gender, needs a case or takes a suffix, and the libraries only select on facts your code passes in, so an arbitrary name a user typed gets no agreement at all.

A placeholder solves word order
A Mastodon user with the interface in French opens the settings of a column called “Saved Posts” and reads the column name first and “Paramètres de la colonne” after it. The report says it should read Paramètres de la colonne <column name>, and proposes the standard fix: add a placeholder to the string 1.
That fix is the first rule of message formatting, and it is a good rule. ICU puts it plainly: “a message has to be written and translated as a single unit”, because translators “move around the variable elements according to the grammar of the target language” 2. A sentence glued together in code fixes the word order for every language at once. A placeholder hands the order back to the translator.
Moving is all it hands back. Shopify’s engineering blog has the cleanest example we know. A status bar said The {fileType} is ready, and in French that one English pattern is three different sentences 3.
"The {fileType} is ready"Le fichier est prêt masculine: le, prêtL'image est prête feminine, before a vowel: l', prêteLa vidéo est prête feminine: la, prêteThe article follows the noun’s gender, “la” shortens to “l’” before a vowel, and the adjective takes an extra e for a feminine noun. The author’s conclusion: “there is no reliable way to interpolate the {fileType} into our <StatusBar> text in French”, and “any interpolation we choose would result in something that is on average more often incorrect than correct” 3.
The placeholder survived. Every brace is where it should be. The sentence is still wrong, because the word that arrives at runtime brings grammar with it, and nothing in the catalog knows what that word will be.
What an inserted word brings with it
ICU’s own documentation states the problem in one line: “When names or nouns are inserted into sentences, their gender can affect pronouns, verb forms, articles, and adjectives” 4. Gender is the familiar case, because the damage stays outside the inserted word. The harder cases change the word itself.
In Polish, “About Firefox” is “Informacje o Firefoksie”. The preposition puts the name in the locative case and the name changes form. The Fluent guide uses exactly this example and notes that in many inflected languages, among them Finnish, Hungarian and all the Slavic languages, “the about preposition governs the grammatical case of the complement” 5. CLDR’s grammatical-features data lists seven case values for Polish, eight for Russian and fourteen for Finnish 6. A placeholder that receives a bare nominative name has no way to be in any of the others.
Some languages attach the grammar to the end of the word. Mozilla’s developer guidance gives Basque, where “From the menu” is Menutik and “To the printers” is Inprimagailuei, and draws the conclusion: “Using placeholders for something like ‘the text’ or ‘the file’ works well in English but is likely to cause problems for localizers if the placeholders cannot be inflected” 7. Turkish adds a constraint English speakers rarely meet: Microsoft’s Turkish style guide says nouns “should be inflected with proper suffixes according to vowel harmony rule”, so the right suffix depends on the vowels of the word it attaches to 8. A translator cannot write that suffix for a word they have not seen.
| Language | What the inserted word needs | Example |
|---|---|---|
| French | Article and adjective agree in gender; the article elides before a vowel | Le fichier est prêt, L'image est prête |
| Polish | The word itself changes case after a preposition | Informacje o Firefoksie |
| Basque | A case ending on the word | Menutik, Inprimagailuei |
| Turkish | A suffix whose vowels follow the vowels of the word | Chosen per word by vowel harmony |
We have written that writing around a pronoun removes the pronoun, not the register, because the verb ending still carries it. Agreement is the same mechanism pointed at a different fact. The ending still has to agree with something, and here the something is a value the catalog never saw.
Libraries choose on what your code passes in
Plural handling is the one agreement the libraries model well, and even that is subtler than it looks. It works because it selects on a number the code already has. Every other mechanism follows the same shape: it chooses among alternatives the translator wrote, using a fact the code passes in.
ICU’s select is the standard tool for gender, and its documentation is explicit about where the gender comes from. The software “has to provide information about the gender associated with a noun or name”, and “the resulting keyword is provided to MessageFormat as a parameter separate from the name or noun it’s associated with”. For nouns, “grammatical gender information should be maintained for each noun and per language, e.g., in resource bundles” 4.
{0} est {1, select, female {allée} other {allé}} à {2}.format(["Kirti", "female", "Paris"]) // "Kirti est allée à Paris."i18next’s context has the same shape: a key such as invite_male is picked when the call passes { context: 'male' } 9. Android 14’s Grammatical Inflection API is narrower still. It selects resources by “the viewer’s grammatical gender”, meaning “the person who’s viewing the UI, not who’s being talked about”, and for anything else it points back to ICU SelectFormat 10.
Case is where the standard tools stop. The MessageFormat 2 specification does show a message selecting on grammatical case, with variants for vocative and accusative, but it introduces the selector as “a custom function :ns:hasCase” in a placeholder namespace, and the specification’s examples are non-normative 11. Its default functions cover strings, numbers, currencies, units, dates and times. None of them knows a word’s case.
| Mechanism | Chooses on | Supplied by |
|---|---|---|
| Plural selection | A number | The code, from a count it already has |
| ICU select, i18next context | A keyword such as a gender | The code, from data someone keeps for each value and language |
| Android 14 grammatical inflection | The viewer's grammatical gender | The user, through a setting the app stores |
| MessageFormat 2 case selection | Whatever a custom function returns | Whoever writes the function |
The tools that inflect know the word in advance
A few tools do change the word itself. Each one works because it knows the word before the sentence is built.
Fluent’s terms carry their own case forms, written by the translator. The Polish brand name above is a term with a nominative and a locative variant, and a message asks for the one it needs.
-brand-name = { $case -> *[nominative] Firefox [locative] Firefoksie }# "About Firefox."about = Informacje o { -brand-name(case: "locative") }.That is the right design for a product name, and the guide says what it is for: terms “are best used to define vocabulary and glossary items”, and “the runtime cannot retrieve terms directly” 5. A value that arrives from the application is a variable, not a term.
MediaWiki’s {{GRAMMAR:}} “outputs the correct inflected form of the given word described by the inflection code after the colon” 12. The forms come from $wgGrammarForms, a table keyed by language, case and word; the manual’s own example maps the English word “car” to “car’s” in the genitive 13. A word that is not in the table, or in a language’s built-in rules, has no entry to look up.
CLDR inflects too, for units of measurement. Its version 38 added “support for units of measurement in inflected languages” as a first phase, for a limited set of locales and units, with case and gender for Polish, Russian, German and Hindi 14. A kilometre can be declined. A file name cannot.
Apple went furthest. Its automatic grammar agreement, introduced in 2021, rewrites marked parts of a localized string so they agree, and was built by “leveraging the same technology that powers suggestions in keyboards”. At launch it supported Spanish and English 15, and Apple has added languages since, among them European Portuguese in 2023 16. The documentation also says where it stops: “if the system lacks information about the words in the string, you may need to apply an inflection rule programmatically”, meaning the developer supplies the grammar 17. The engine behind it was donated to the Unicode Consortium as the Unicode Inflection library, which describes its data as “lexical dictionaries that contain relationships between inflections of a word” 18.
A term, a table, a unit list and a dictionary are all closed sets. The values that break sentences are the open ones: a project name, a file name, a person’s name typed yesterday. None of these tools has an entry for them.
What projects do when it breaks
The OpenStreetMap website is a Rails application translated on translatewiki.net. In August 2025 a maintainer found that translators had been writing MediaWiki’s {{GENDER:}} syntax into its strings, which Rails does not understand, to switch between grammatical genders where their language needed one. In the Albanian file, the maintainer noted, a translator had “desperately stuffed the current wiki page name” into the message as the variable to take a gender from 19.
The discussion that followed is the whole problem in a few comments. “Whose gender would such a construct even refer to anyway?” one maintainer asked: the reader’s, or the person the message is about. Storing gender raised privacy concerns, and the conclusion was that “any attempts to do this are just translation bugs that should be fixed”. The issue was closed by a commit titled “Add test for mediawiki magic words in translations”, a test that rejects the syntax 19. That is a reasonable decision, and it hands the agreement back to the translator with one less tool.
The same question reached i18next in 2024, from a team asking for anything that helps “for applications that are not storing and using the user’s gender”. The maintainer’s whole answer: “I’m not aware of any other solution than using the users gender to form a context variant (i18next) or a select (messageformat)”. The team’s own list of fallbacks was to rephrase the sentence, to write sûr(e), or to use a slash 20.
Microsoft’s Turkish style guide shows what the rephrase looks like from the translator’s side. “Unable to delete %s” becomes %s silinemiyor, roughly “%s cannot be deleted”, with the comment “Content of the placeholder is unknown, therefore no suffixes are allowed.” The guide calls handling placeholders “one of the main challenges of software translations” in Turkish 8.
The case that rewording is enough
The strongest objection is that the Turkish example is the answer, not the problem. Most of these sentences can be rewritten so the value needs no agreement, and the rewrite is usually cheap. The i18next team rephrased their French sentence to avoid a gendered adjective 20. Mozilla suggests Copied files: %S instead of %S files were copied where plural forms are unavailable 7. GitLab’s guidance, when a variable cannot be avoided, is a “topic-comment structure” such as Related items: %{workItemType} → %{relatedWorkItemType} 21. None of it needs a gender table, a lexicon or a new library. We found no published measurement of how often placeholder sentences come out ungrammatical, so nobody can show that the residue is large.
We think that is mostly right, and it is the reason this is a writing problem rather than a tooling one. It has two limits.
First, a rewording is a different sentence. A label with a colon is stiffer than a sentence, and whether that is acceptable depends on the surface: an error message can take it, a greeting or a notification often cannot. That is a product decision, and the translator, working one string at a time, is not the person who makes it.
Second, some fixes are not available inside one string at all. GitLab’s first recommendation is a source change: “Instead of one string with a variable, create unique strings for each case” 21. Shopify’s is the same principle in general form: “we should avoid doing any kind of construction or manipulation of text at the level of the code” 3. A translator cannot split one key into five, and cannot make the code pass a gender it does not have.
Writing a sentence a value can sit in
The useful question about any placeholder is what kind of value fills it. In our pillar post we said the runtime grammar is settled before a translator sees a string. The placeholder is where it is most often settled by accident.
- A closed set (file types, item types, statuses): write one whole sentence per value, or keep each value’s gender per language and pass it as a
selectkeyword. Both are code and data decisions, made in the source 21,4. - An open value (anything a user typed): put it where it needs no agreement, as a label and a value or a topic-comment form, and accept the stiffer register on that surface. Decide this in the source, so every language starts from a sentence it can actually translate.
- Say what fills it. Mozilla’s rule is “always explain what will be the value of these variables at run-time” 7, and Microsoft tells its translators to “try to find out what will replace the placeholder” 8. A translator who knows the value is open can choose the Turkish rewrite on purpose.
- Do not read a surviving placeholder as a correct sentence. A check that every brace made it through says the structure is intact. It says nothing about whether the words around it agree with what fills it. A translation can be linguistically perfect and still broken, and this is the reverse case: structurally perfect and still ungrammatical.
A placeholder puts the word in the right place. It arrives the right size, in the right slot, and it cannot change shape to fit the words around it. Either the sentence is built so it does not have to, or someone has to tell the sentence what the word is.
References
- 1.Mastodon issue tracker, 2026 [i18n] "Column Settings" in advanced mode causes grammar error in translations mastodon/mastodon issue #41128
- 2.Unicode ICU Formatting Messages ICU User Guide
- 3.Lucas Huang, 2023 Lessons From Linguistics: i18n Best Practices for Front-End Developers Shopify Engineering
- 4.Unicode ICU SelectFormat ICU4J API reference
- 5.Project Fluent Terms Fluent Syntax Guide
- 6.Unicode CLDR grammaticalFeatures.xml CLDR supplemental data, unicode-org/cldr on GitHub
- 7.Mozilla Localization best practices for developers Mozilla Localization Documentation
- 8.Microsoft Turkish Localization Style Guide Microsoft Localization Style Guides, pages 23 and 40
- 9.i18next Context i18next documentation
- 10.Android Developers Grammatical Inflection API Android 14 features
- 11.Eemeli Aro and Addison Phillips, eds. Unicode Locale Data Markup Language, Part 9: MessageFormat UTS #35, CLDR 49
- 12.MediaWiki Help:Magic words mediawiki.org
- 13.MediaWiki Manual:$wgGrammarForms mediawiki.org
- 14.Unicode CLDR CLDR 38 Release Note cldr.unicode.org
- 15.Apple, 2021 What's new in Foundation WWDC21, session 10109
- 16.Apple, 2023 Unlock the power of grammatical agreement WWDC23, session 10153
- 17.Apple InflectionRule Apple Developer Documentation, Foundation
- 18.Unicode Consortium Unicode Inflection unicode-org/inflection on GitHub
- 19.OpenStreetMap website issue tracker, 2025 Broken grammatical gender syntax in translated interface strings openstreetmap/openstreetmap-website issue #6341
- 20.i18next discussions, 2024 Does i18next help with Gendered Grammar? i18next/i18next discussion #2161
- 21.GitLab Internationalization for GitLab GitLab development documentation