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
Clear

5,928 of 11,911 cases

Case Name Expected Note Size
003045 unicode/part1/U+FBFB NormalizationTest.txt ﯻ␊ئى␊ئى Line 14270: ARABIC LIGATURE UIGHUR KIRGHIZ YEH WITH HAMZA ABOVE WITH ALEF MAKSURA INITIAL FORM. Its distinct columns, one per line. 15 B
003046 unicode/part1/U+FBFC NormalizationTest.txt ﯼ␊ی Line 14271: ARABIC LETTER FARSI YEH ISOLATED FORM. Its distinct columns, one per line. 6 B
003047 unicode/part1/U+FBFD NormalizationTest.txt ﯽ␊ی Line 14272: ARABIC LETTER FARSI YEH FINAL FORM. Its distinct columns, one per line. 6 B
003048 unicode/part1/U+FBFE NormalizationTest.txt ﯾ␊ی Line 14273: ARABIC LETTER FARSI YEH INITIAL FORM. Its distinct columns, one per line. 6 B
003049 unicode/part1/U+FBFF NormalizationTest.txt ﯿ␊ی Line 14274: ARABIC LETTER FARSI YEH MEDIAL FORM. Its distinct columns, one per line. 6 B
003050 unicode/part1/U+FC00 NormalizationTest.txt ﰀ␊ئج␊ئج Line 14275: ARABIC LIGATURE YEH WITH HAMZA ABOVE WITH JEEM ISOLATED FORM. Its distinct columns, one per line. 15 B
003051 unicode/part1/U+FC01 NormalizationTest.txt ﰁ␊ئح␊ئح Line 14276: ARABIC LIGATURE YEH WITH HAMZA ABOVE WITH HAH ISOLATED FORM. Its distinct columns, one per line. 15 B
003052 unicode/part1/U+FC02 NormalizationTest.txt ﰂ␊ئم␊ئم Line 14277: ARABIC LIGATURE YEH WITH HAMZA ABOVE WITH MEEM ISOLATED FORM. Its distinct columns, one per line. 15 B
003053 unicode/part1/U+FC03 NormalizationTest.txt ﰃ␊ئى␊ئى Line 14278: ARABIC LIGATURE YEH WITH HAMZA ABOVE WITH ALEF MAKSURA ISOLATED FORM. Its distinct columns, one per line. 15 B
003054 unicode/part1/U+FC04 NormalizationTest.txt ﰄ␊ئي␊ئي Line 14279: ARABIC LIGATURE YEH WITH HAMZA ABOVE WITH YEH ISOLATED FORM. Its distinct columns, one per line. 15 B
003055 unicode/part1/U+FC05 NormalizationTest.txt ﰅ␊بج Line 14280: ARABIC LIGATURE BEH WITH JEEM ISOLATED FORM. Its distinct columns, one per line. 8 B
003056 unicode/part1/U+FC06 NormalizationTest.txt ﰆ␊بح Line 14281: ARABIC LIGATURE BEH WITH HAH ISOLATED FORM. Its distinct columns, one per line. 8 B
003057 unicode/part1/U+FC07 NormalizationTest.txt ﰇ␊بخ Line 14282: ARABIC LIGATURE BEH WITH KHAH ISOLATED FORM. Its distinct columns, one per line. 8 B
003058 unicode/part1/U+FC08 NormalizationTest.txt ﰈ␊بم Line 14283: ARABIC LIGATURE BEH WITH MEEM ISOLATED FORM. Its distinct columns, one per line. 8 B
003059 unicode/part1/U+FC09 NormalizationTest.txt ﰉ␊بى Line 14284: ARABIC LIGATURE BEH WITH ALEF MAKSURA ISOLATED FORM. Its distinct columns, one per line. 8 B
003060 unicode/part1/U+FC0A NormalizationTest.txt ﰊ␊بي Line 14285: ARABIC LIGATURE BEH WITH YEH ISOLATED FORM. Its distinct columns, one per line. 8 B
003061 unicode/part1/U+FC0B NormalizationTest.txt ﰋ␊تج Line 14286: ARABIC LIGATURE TEH WITH JEEM ISOLATED FORM. Its distinct columns, one per line. 8 B
003062 unicode/part1/U+FC0C NormalizationTest.txt ﰌ␊تح Line 14287: ARABIC LIGATURE TEH WITH HAH ISOLATED FORM. Its distinct columns, one per line. 8 B
003063 unicode/part1/U+FC0D NormalizationTest.txt ﰍ␊تخ Line 14288: ARABIC LIGATURE TEH WITH KHAH ISOLATED FORM. Its distinct columns, one per line. 8 B
003064 unicode/part1/U+FC0E NormalizationTest.txt ﰎ␊تم Line 14289: ARABIC LIGATURE TEH WITH MEEM ISOLATED FORM. Its distinct columns, one per line. 8 B
003065 unicode/part1/U+FC0F NormalizationTest.txt ﰏ␊تى Line 14290: ARABIC LIGATURE TEH WITH ALEF MAKSURA ISOLATED FORM. Its distinct columns, one per line. 8 B
003066 unicode/part1/U+FC10 NormalizationTest.txt ﰐ␊تي Line 14291: ARABIC LIGATURE TEH WITH YEH ISOLATED FORM. Its distinct columns, one per line. 8 B
003067 unicode/part1/U+FC11 NormalizationTest.txt ﰑ␊ثج Line 14292: ARABIC LIGATURE THEH WITH JEEM ISOLATED FORM. Its distinct columns, one per line. 8 B
003068 unicode/part1/U+FC12 NormalizationTest.txt ﰒ␊ثم Line 14293: ARABIC LIGATURE THEH WITH MEEM ISOLATED FORM. Its distinct columns, one per line. 8 B
003069 unicode/part1/U+FC13 NormalizationTest.txt ﰓ␊ثى Line 14294: ARABIC LIGATURE THEH WITH ALEF MAKSURA ISOLATED FORM. Its distinct columns, one per line. 8 B
003070 unicode/part1/U+FC14 NormalizationTest.txt ﰔ␊ثي Line 14295: ARABIC LIGATURE THEH WITH YEH ISOLATED FORM. Its distinct columns, one per line. 8 B
003071 unicode/part1/U+FC15 NormalizationTest.txt ﰕ␊جح Line 14296: ARABIC LIGATURE JEEM WITH HAH ISOLATED FORM. Its distinct columns, one per line. 8 B
003072 unicode/part1/U+FC16 NormalizationTest.txt ﰖ␊جم Line 14297: ARABIC LIGATURE JEEM WITH MEEM ISOLATED FORM. Its distinct columns, one per line. 8 B
003073 unicode/part1/U+FC17 NormalizationTest.txt ﰗ␊حج Line 14298: ARABIC LIGATURE HAH WITH JEEM ISOLATED FORM. Its distinct columns, one per line. 8 B
003074 unicode/part1/U+FC18 NormalizationTest.txt ﰘ␊حم Line 14299: ARABIC LIGATURE HAH WITH MEEM ISOLATED FORM. Its distinct columns, one per line. 8 B
003075 unicode/part1/U+FC19 NormalizationTest.txt ﰙ␊خج Line 14300: ARABIC LIGATURE KHAH WITH JEEM ISOLATED FORM. Its distinct columns, one per line. 8 B
003076 unicode/part1/U+FC1A NormalizationTest.txt ﰚ␊خح Line 14301: ARABIC LIGATURE KHAH WITH HAH ISOLATED FORM. Its distinct columns, one per line. 8 B
003077 unicode/part1/U+FC1B NormalizationTest.txt ﰛ␊خم Line 14302: ARABIC LIGATURE KHAH WITH MEEM ISOLATED FORM. Its distinct columns, one per line. 8 B
003078 unicode/part1/U+FC1C NormalizationTest.txt ﰜ␊سج Line 14303: ARABIC LIGATURE SEEN WITH JEEM ISOLATED FORM. Its distinct columns, one per line. 8 B
003079 unicode/part1/U+FC1D NormalizationTest.txt ﰝ␊سح Line 14304: ARABIC LIGATURE SEEN WITH HAH ISOLATED FORM. Its distinct columns, one per line. 8 B
003080 unicode/part1/U+FC1E NormalizationTest.txt ﰞ␊سخ Line 14305: ARABIC LIGATURE SEEN WITH KHAH ISOLATED FORM. Its distinct columns, one per line. 8 B
003081 unicode/part1/U+FC1F NormalizationTest.txt ﰟ␊سم Line 14306: ARABIC LIGATURE SEEN WITH MEEM ISOLATED FORM. Its distinct columns, one per line. 8 B
003082 unicode/part1/U+FC20 NormalizationTest.txt ﰠ␊صح Line 14307: ARABIC LIGATURE SAD WITH HAH ISOLATED FORM. Its distinct columns, one per line. 8 B
003083 unicode/part1/U+FC21 NormalizationTest.txt ﰡ␊صم Line 14308: ARABIC LIGATURE SAD WITH MEEM ISOLATED FORM. Its distinct columns, one per line. 8 B
003084 unicode/part1/U+FC22 NormalizationTest.txt ﰢ␊ضج Line 14309: ARABIC LIGATURE DAD WITH JEEM ISOLATED FORM. Its distinct columns, one per line. 8 B
003085 unicode/part1/U+FC23 NormalizationTest.txt ﰣ␊ضح Line 14310: ARABIC LIGATURE DAD WITH HAH ISOLATED FORM. Its distinct columns, one per line. 8 B
003086 unicode/part1/U+FC24 NormalizationTest.txt ﰤ␊ضخ Line 14311: ARABIC LIGATURE DAD WITH KHAH ISOLATED FORM. Its distinct columns, one per line. 8 B
003087 unicode/part1/U+FC25 NormalizationTest.txt ﰥ␊ضم Line 14312: ARABIC LIGATURE DAD WITH MEEM ISOLATED FORM. Its distinct columns, one per line. 8 B
003088 unicode/part1/U+FC26 NormalizationTest.txt ﰦ␊طح Line 14313: ARABIC LIGATURE TAH WITH HAH ISOLATED FORM. Its distinct columns, one per line. 8 B
003089 unicode/part1/U+FC27 NormalizationTest.txt ﰧ␊طم Line 14314: ARABIC LIGATURE TAH WITH MEEM ISOLATED FORM. Its distinct columns, one per line. 8 B
003090 unicode/part1/U+FC28 NormalizationTest.txt ﰨ␊ظم Line 14315: ARABIC LIGATURE ZAH WITH MEEM ISOLATED FORM. Its distinct columns, one per line. 8 B
003091 unicode/part1/U+FC29 NormalizationTest.txt ﰩ␊عج Line 14316: ARABIC LIGATURE AIN WITH JEEM ISOLATED FORM. Its distinct columns, one per line. 8 B
003092 unicode/part1/U+FC2A NormalizationTest.txt ﰪ␊عم Line 14317: ARABIC LIGATURE AIN WITH MEEM ISOLATED FORM. Its distinct columns, one per line. 8 B
003093 unicode/part1/U+FC2B NormalizationTest.txt ﰫ␊غج Line 14318: ARABIC LIGATURE GHAIN WITH JEEM ISOLATED FORM. Its distinct columns, one per line. 8 B
003094 unicode/part1/U+FC2C NormalizationTest.txt ﰬ␊غم Line 14319: ARABIC LIGATURE GHAIN WITH MEEM ISOLATED FORM. Its distinct columns, one per line. 8 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.