Understanding Pluralization Across Languages
You'll learn why assuming all languages pluralize like English leads to broken international applications.
The English Trap
In English, we're tempted to write code like this:
const count = items.length;
const message = `${count} item${count !== 1 ? 's' : ''}`;
This seems logical: one item, two items. Problem solved, right? Wrong.
Different Languages, Different Rules
Pluralization varies wildly across languages:
- Arabic has six plural forms depending on the number (0, 1, 2, 3-10, 11-99, 100+)
- Polish uses different forms for 1, 2-4, and 5+ items
- Japanese has no grammatical plurals at all
- Russian changes forms based on the last digit of the number
- Welsh has separate plural rules for masculine and feminine nouns
Hardcoding 's' doesn't just fail for non-English languages — it creates grammatically incorrect, sometimes confusing text.
Think Beyond Suffixes
Pluralization isn't always about adding letters. Sometimes:
- The entire word changes ("person" → "people")
- Context determines the form, not just the count
- Zero is treated differently than other numbers
The Analogy
Imagine a restaurant menu generator that assumes every culture eats with chopsticks. It works perfectly in East Asia, but fails everywhere else. That's what happens when you assume English pluralization rules apply universally.
Key Takeaway: Pluralization is deeply language-specific, with rules ranging from zero forms to six or more; hardcoding English patterns like adding 's' breaks internationalization and produces grammatically incorrect output in most world languages.