HomeComputer ScienceCLDR Plural Rules Explorer

CLDR Plural Rules Explorer

Interactive 3D visualizer for the Unicode CLDR plural-rules algorithm that every localized mobile app relies on: watch how the same integer is sorted into a different grammatical plural category (zero/one/two/few/many/other) depending on the target language, and why 'n items' cannot simply be a hard-coded string in i18n code.

Computer Science3DModerate60 FPS📱 Mobile-adapted
mobile-localization-internationalization ↗ Open standalone

Mobile internationalization (i18n) is not just swapping translated strings — grammatical number agreement is a real algorithm with real edge cases. This simulator renders the integers 0–100 as a 3D instanced grid of cubes, colored by which Unicode CLDR plural category (zero/one/two/few/many/other) each number falls into for a chosen language's rule set. Switch between English, Russian, Polish, Arabic, Welsh, French and Japanese to see how differently each language partitions the same 101 numbers — Russian and Arabic need six-way branching where English needs two, and Japanese needs none at all — while live readouts track the matched rule, the share of numbers in that category, and how many distinct categories the locale actually uses.

⚙ Under the hood

An interactive 3D visualizer for the Unicode CLDR plural-rules algorithm behind mobile i18n: watch the integers 0-100 sort into different grammatical categories (zero/one/two/few/many/other) depending on the target language's rule set.

i18nlocalizationcldrplural-rulesalgorithmsmobile-dev

3D · Three.js / WebGL renderer · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)