Compliance cases

These are the 11,911 inputs a submission must normalize. Each output must match the expected text byte for byte. You can run the suite without reading it, or open any case to see its input and expected output.

NFC as UAX #15 defines it, pinned to Unicode 17.0.0: canonical decomposition, canonical ordering of combining marks, then canonical composition, with Hangul by arithmetic. The decomposition, combining class and composition tables are what make the Wasm big, so size is ranked on the gzipped download. The compliance suite has every line of NormalizationTest.txt, every other assigned code point, every quick-check Maybe and No character in context, targeted cases on exclusions, blocking, Hangul, long runs of marks and 16-byte boundaries, and seeded random text. A UAX #15 reference, ICU and Python agree on every answer.

Run the full compliance suite locally. Replace your-component.wasm with your compiled component. Download the suite

curl -fLo normalize_nfc.comply.wasm https://calculated.world/comply/normalize_nfc.wasm
npx qipok your-component.wasm --suite normalize_nfc.comply.wasm

All 11,911 cases

Case Name Expected Note Size
009150 regression/text/Czech mixed Focused regression Příliš žluťoučký kůň úpěl ďábelské ódy. Every other word in NFD. 61 B
009151 regression/text/Greek Focused regression Ξεσκεπάζω την ψυχοφθόρα βδελυγμία. 64 B
009152 regression/text/Greek decomposed Focused regression Ξεσκεπάζω την ψυχοφθόρα βδελυγμία. The same phrase in NFD, as macOS file names and some keyboards produce it. 70 B
009153 regression/text/Greek mixed Focused regression Ξεσκεπάζω την ψυχοφθόρα βδελυγμία. Every other word in NFD. 66 B
009154 regression/text/polytonic Greek Focused regression Ἐν ἀρχῇ ἦν ὁ λόγος, καὶ ὁ λόγος ἦν πρὸς τὸν θεόν… 135 B
009155 regression/text/polytonic Greek decomposed Focused regression Ἐν ἀρχῇ ἦν ὁ λόγος, καὶ ὁ λόγος ἦν πρὸς τὸν θεόν… The same phrase in NFD, as macOS file names and some keyboards produce it. 165 B
009156 regression/text/polytonic Greek mixed Focused regression Ἐν ἀρχῇ ἦν ὁ λόγος, καὶ ὁ λόγος ἦν πρὸς τὸν θεόν… Every other word in NFD. 148 B
009157 regression/text/Russian Focused regression Съешь же ещё этих мягких французских булок, да в… 119 B
009158 regression/text/Russian decomposed Focused regression Съешь же ещё этих мягких французских булок, да в… The same phrase in NFD, as macOS file names and some keyboards produce it. 127 B
009159 regression/text/Korean Focused regression 다람쥐 헌 쳇바퀴에 타고파. 한글은 한국어를 적는 문자이다. 81 B
009160 regression/text/Korean decomposed Focused regression 다람쥐 헌 쳇바퀴에 타고파. 한글은 한국어를 적는 문자이다. The same phrase in NFD, as macOS file names and some keyboards produce it. 189 B
009161 regression/text/Korean mixed Focused regression 다람쥐 헌 쳇바퀴에 타고파. 한글은 한국어를 적는 문자이다. Every other word in NFD. 132 B
009162 regression/text/Japanese Focused regression いろはにほへと ちりぬるを。ガギグゲゴ、パピプペポ、ヴァイオリン。 97 B
009163 regression/text/Japanese decomposed Focused regression いろはにほへと ちりぬるを。ガギグゲゴ、パピプペポ、ヴァイオリン。 The same phrase in NFD, as macOS file names and some keyboards produce it. 130 B
009164 regression/text/Hebrew Focused regression בְּרֵאשִׁית בָּרָא אֱלֹהִים אֵת הַשָּׁמַיִם וְאֵת הָאָרֶץ 108 B
009165 regression/text/Arabic Focused regression بِسْمِ ٱللَّٰهِ ٱلرَّحْمَٰنِ ٱلرَّحِيمِ. نصٌّ حكيمٌ لهُ سِرٌّ قاطِعٌ 127 B
009166 regression/text/Hindi Focused regression ऋषियों को सताने वाले दुष्ट राक्षसों के राजा रावण का सर्वनाश। क़िला, ज़मीन, फ़ौज… 222 B
009167 regression/text/Bengali Focused regression আমি কাঁচ খেতে পারি, তাতে আমার কোনো ক্ষতি হয় না। বড়ো, আষাঢ়, য় 162 B
009168 regression/text/Bengali decomposed Focused regression আমি কাঁচ খেতে পারি, তাতে আমার কোনো ক্ষতি হয় না। বড়ো, আষাঢ়, য় The same phrase in NFD, as macOS file names and some keyboards produce it. 171 B
009169 regression/text/Tamil Focused regression நான் கண்ணாடி சாப்பிடுவேன், அதனால் எனக்கு ஒரு கேடும் வராது. கொ கோ கௌ 177 B
009170 regression/text/Tamil decomposed Focused regression நான் கண்ணாடி சாப்பிடுவேன், அதனால் எனக்கு ஒரு கேடும் வராது. கொ கோ கௌ The same phrase in NFD, as macOS file names and some keyboards produce it. 186 B
009171 regression/text/Tamil mixed Focused regression நான் கண்ணாடி சாப்பிடுவேன், அதனால் எனக்கு ஒரு கேடும் வராது. கொ கோ கௌ Every other word in NFD. 180 B
009172 regression/text/Thai Focused regression เป็นมนุษย์สุดประเสริฐเลิศคุณค่า กว่าบรรดาฝูงสัตว์เดรัจฉาน 169 B
009173 regression/text/Tibetan Focused regression བོད་སྐད་ནི་བོད་ཡིག་གི་སྐད་ཡིན། གྷ་ཌྷ་དྷ་བྷ་ཛྷ་ཀྵ 142 B
009174 regression/text/Chinese Focused regression 我能吞下玻璃而不伤身体。視野無限廣,窗外有藍天。 72 B
009175 regression/text/emoji Focused regression 👩🏽⟨U+200D⟩💻 writes ❤️ for 👨⟨U+200D⟩👩⟨U+200D⟩👧⟨U+200D⟩👦 and 🏳️⟨U+200D⟩🌈, é and 🇳🇿. 96 B
009176 regression/text/emoji decomposed Focused regression 👩🏽⟨U+200D⟩💻 writes ❤️ for 👨⟨U+200D⟩👩⟨U+200D⟩👧⟨U+200D⟩👦 and 🏳️⟨U+200D⟩🌈, é and 🇳🇿. The same phrase in NFD, as macOS file names and some keyboards produce it. 97 B
009177 regression/block/ASCII/e + acute at 12 Focused regression eeeeeeeeeeeeéeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee… U+0065 U+0301 starts at byte 12 of ASCII text. 55 B
009178 regression/block/ASCII/acute at 12 Focused regression eeeeeeeeeeeéeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee… U+0301 starts at byte 12 of ASCII text. 54 B
009179 regression/block/ASCII/angstrom sign at 12 Focused regression eeeeeeeeeeeeÅeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee… U+212B starts at byte 12 of ASCII text. 55 B
009180 regression/block/ASCII/jamo at 12 Focused regression eeeeeeeeeeee각eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee… U+1100 U+1161 U+11A8 starts at byte 12 of ASCII text. 61 B
009181 regression/block/ASCII/qa at 12 Focused regression eeeeeeeeeeeeक़eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee… U+0958 starts at byte 12 of ASCII text. 55 B
009182 regression/block/ASCII/marks to reorder at 12 Focused regression eeeeeeeeeeeẹ́eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee… U+0301 U+0323 starts at byte 12 of ASCII text. 56 B
009183 regression/block/ASCII/a + circumflex + acute at 12 Focused regression eeeeeeeeeeeeấeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee… U+0061 U+0302 U+0301 starts at byte 12 of ASCII text. 57 B
009184 regression/block/ASCII/precomposed at 12 Focused regression eeeeeeeeeeeeấeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee… U+1EA5 starts at byte 12 of ASCII text. 55 B
009185 regression/block/ASCII/musical symbol at 12 Focused regression eeeeeeeeeeee𝅗𝅥eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee… U+1D15E starts at byte 12 of ASCII text. 56 B
009186 regression/block/ASCII/e + acute at 13 Focused regression eeeeeeeeeeeeeéeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee… U+0065 U+0301 starts at byte 13 of ASCII text. 56 B
009187 regression/block/ASCII/angstrom sign at 13 Focused regression eeeeeeeeeeeeeÅeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee… U+212B starts at byte 13 of ASCII text. 56 B
009188 regression/block/ASCII/jamo at 13 Focused regression eeeeeeeeeeeee각eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee… U+1100 U+1161 U+11A8 starts at byte 13 of ASCII text. 62 B
009189 regression/block/ASCII/qa at 13 Focused regression eeeeeeeeeeeeeक़eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee… U+0958 starts at byte 13 of ASCII text. 56 B
009190 regression/block/ASCII/marks to reorder at 13 Focused regression eeeeeeeeeeeeẹ́eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee… U+0301 U+0323 starts at byte 13 of ASCII text. 57 B
009191 regression/block/ASCII/a + circumflex + acute at 13 Focused regression eeeeeeeeeeeeeấeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee… U+0061 U+0302 U+0301 starts at byte 13 of ASCII text. 58 B
009192 regression/block/ASCII/precomposed at 13 Focused regression eeeeeeeeeeeeeấeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee… U+1EA5 starts at byte 13 of ASCII text. 56 B
009193 regression/block/ASCII/musical symbol at 13 Focused regression eeeeeeeeeeeee𝅗𝅥eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee… U+1D15E starts at byte 13 of ASCII text. 57 B
009194 regression/block/ASCII/e + acute at 14 Focused regression eeeeeeeeeeeeeeéeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee… U+0065 U+0301 starts at byte 14 of ASCII text. 57 B
009195 regression/block/ASCII/angstrom sign at 14 Focused regression eeeeeeeeeeeeeeÅeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee… U+212B starts at byte 14 of ASCII text. 57 B
009196 regression/block/ASCII/jamo at 14 Focused regression eeeeeeeeeeeeee각eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee… U+1100 U+1161 U+11A8 starts at byte 14 of ASCII text. 63 B
009197 regression/block/ASCII/qa at 14 Focused regression eeeeeeeeeeeeeeक़eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee… U+0958 starts at byte 14 of ASCII text. 57 B
009198 regression/block/ASCII/marks to reorder at 14 Focused regression eeeeeeeeeeeeeẹ́eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee… U+0301 U+0323 starts at byte 14 of ASCII text. 58 B
009199 regression/block/ASCII/a + circumflex + acute at 14 Focused regression eeeeeeeeeeeeeeấeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee… U+0061 U+0302 U+0301 starts at byte 14 of ASCII text. 59 B

Where these rules come from

NFC is defined by UAX #15, Unicode Normalization Forms, and chapter 3.11 of the Unicode Standard, here pinned to Unicode 17.0.0. Every answer is agreed by a direct reading of UAX #15 over the pinned data files, ICU 78.3 and Python’s unicodedata.normalize; the suite’s own tests add Node.js’s String.prototype.normalize. Combining marks merge into the character before them, so each case also lists its code points.