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

3,833 of 11,911 cases

Case Name Expected Note Size
003833 unicode/part1/U+FF82 NormalizationTest.txt ツ␊ツ Line 15058: HALFWIDTH KATAKANA LETTER TU. Its distinct columns, one per line. 7 B
003834 unicode/part1/U+FF83 NormalizationTest.txt テ␊テ Line 15059: HALFWIDTH KATAKANA LETTER TE. Its distinct columns, one per line. 7 B
003835 unicode/part1/U+FF84 NormalizationTest.txt ト␊ト Line 15060: HALFWIDTH KATAKANA LETTER TO. Its distinct columns, one per line. 7 B
003836 unicode/part1/U+FF85 NormalizationTest.txt ナ␊ナ Line 15061: HALFWIDTH KATAKANA LETTER NA. Its distinct columns, one per line. 7 B
003837 unicode/part1/U+FF86 NormalizationTest.txt ニ␊ニ Line 15062: HALFWIDTH KATAKANA LETTER NI. Its distinct columns, one per line. 7 B
003838 unicode/part1/U+FF87 NormalizationTest.txt ヌ␊ヌ Line 15063: HALFWIDTH KATAKANA LETTER NU. Its distinct columns, one per line. 7 B
003839 unicode/part1/U+FF88 NormalizationTest.txt ネ␊ネ Line 15064: HALFWIDTH KATAKANA LETTER NE. Its distinct columns, one per line. 7 B
003840 unicode/part1/U+FF89 NormalizationTest.txt ノ␊ノ Line 15065: HALFWIDTH KATAKANA LETTER NO. Its distinct columns, one per line. 7 B
003841 unicode/part1/U+FF8A NormalizationTest.txt ハ␊ハ Line 15066: HALFWIDTH KATAKANA LETTER HA. Its distinct columns, one per line. 7 B
003842 unicode/part1/U+FF8B NormalizationTest.txt ヒ␊ヒ Line 15067: HALFWIDTH KATAKANA LETTER HI. Its distinct columns, one per line. 7 B
003843 unicode/part1/U+FF8C NormalizationTest.txt フ␊フ Line 15068: HALFWIDTH KATAKANA LETTER HU. Its distinct columns, one per line. 7 B
003844 unicode/part1/U+FF8D NormalizationTest.txt ヘ␊ヘ Line 15069: HALFWIDTH KATAKANA LETTER HE. Its distinct columns, one per line. 7 B
003845 unicode/part1/U+FF8E NormalizationTest.txt ホ␊ホ Line 15070: HALFWIDTH KATAKANA LETTER HO. Its distinct columns, one per line. 7 B
003846 unicode/part1/U+FF8F NormalizationTest.txt マ␊マ Line 15071: HALFWIDTH KATAKANA LETTER MA. Its distinct columns, one per line. 7 B
003847 unicode/part1/U+FF90 NormalizationTest.txt ミ␊ミ Line 15072: HALFWIDTH KATAKANA LETTER MI. Its distinct columns, one per line. 7 B
003848 unicode/part1/U+FF91 NormalizationTest.txt ム␊ム Line 15073: HALFWIDTH KATAKANA LETTER MU. Its distinct columns, one per line. 7 B
003849 unicode/part1/U+FF92 NormalizationTest.txt メ␊メ Line 15074: HALFWIDTH KATAKANA LETTER ME. Its distinct columns, one per line. 7 B
003850 unicode/part1/U+FF93 NormalizationTest.txt モ␊モ Line 15075: HALFWIDTH KATAKANA LETTER MO. Its distinct columns, one per line. 7 B
003851 unicode/part1/U+FF94 NormalizationTest.txt ヤ␊ヤ Line 15076: HALFWIDTH KATAKANA LETTER YA. Its distinct columns, one per line. 7 B
003852 unicode/part1/U+FF95 NormalizationTest.txt ユ␊ユ Line 15077: HALFWIDTH KATAKANA LETTER YU. Its distinct columns, one per line. 7 B
003853 unicode/part1/U+FF96 NormalizationTest.txt ヨ␊ヨ Line 15078: HALFWIDTH KATAKANA LETTER YO. Its distinct columns, one per line. 7 B
003854 unicode/part1/U+FF97 NormalizationTest.txt ラ␊ラ Line 15079: HALFWIDTH KATAKANA LETTER RA. Its distinct columns, one per line. 7 B
003855 unicode/part1/U+FF98 NormalizationTest.txt リ␊リ Line 15080: HALFWIDTH KATAKANA LETTER RI. Its distinct columns, one per line. 7 B
003856 unicode/part1/U+FF99 NormalizationTest.txt ル␊ル Line 15081: HALFWIDTH KATAKANA LETTER RU. Its distinct columns, one per line. 7 B
003857 unicode/part1/U+FF9A NormalizationTest.txt レ␊レ Line 15082: HALFWIDTH KATAKANA LETTER RE. Its distinct columns, one per line. 7 B
003858 unicode/part1/U+FF9B NormalizationTest.txt ロ␊ロ Line 15083: HALFWIDTH KATAKANA LETTER RO. Its distinct columns, one per line. 7 B
003859 unicode/part1/U+FF9C NormalizationTest.txt ワ␊ワ Line 15084: HALFWIDTH KATAKANA LETTER WA. Its distinct columns, one per line. 7 B
003860 unicode/part1/U+FF9D NormalizationTest.txt ン␊ン Line 15085: HALFWIDTH KATAKANA LETTER N. Its distinct columns, one per line. 7 B
003861 unicode/part1/U+FF9E NormalizationTest.txt ゙␊゙ Line 15086: HALFWIDTH KATAKANA VOICED SOUND MARK. Its distinct columns, one per line. 7 B
003862 unicode/part1/U+FF9F NormalizationTest.txt ゚␊゚ Line 15087: HALFWIDTH KATAKANA SEMI-VOICED SOUND MARK. Its distinct columns, one per line. 7 B
003863 unicode/part1/U+FFA0 NormalizationTest.txt ᅠ␊ᅠ Line 15088: HALFWIDTH HANGUL FILLER. Its distinct columns, one per line. 7 B
003864 unicode/part1/U+FFA1 NormalizationTest.txt ᄀ␊ᄀ Line 15089: HALFWIDTH HANGUL LETTER KIYEOK. Its distinct columns, one per line. 7 B
003865 unicode/part1/U+FFA2 NormalizationTest.txt ᄁ␊ᄁ Line 15090: HALFWIDTH HANGUL LETTER SSANGKIYEOK. Its distinct columns, one per line. 7 B
003866 unicode/part1/U+FFA3 NormalizationTest.txt ᆪ␊ᆪ Line 15091: HALFWIDTH HANGUL LETTER KIYEOK-SIOS. Its distinct columns, one per line. 7 B
003867 unicode/part1/U+FFA4 NormalizationTest.txt ᄂ␊ᄂ Line 15092: HALFWIDTH HANGUL LETTER NIEUN. Its distinct columns, one per line. 7 B
003868 unicode/part1/U+FFA5 NormalizationTest.txt ᆬ␊ᆬ Line 15093: HALFWIDTH HANGUL LETTER NIEUN-CIEUC. Its distinct columns, one per line. 7 B
003869 unicode/part1/U+FFA6 NormalizationTest.txt ᆭ␊ᆭ Line 15094: HALFWIDTH HANGUL LETTER NIEUN-HIEUH. Its distinct columns, one per line. 7 B
003870 unicode/part1/U+FFA7 NormalizationTest.txt ᄃ␊ᄃ Line 15095: HALFWIDTH HANGUL LETTER TIKEUT. Its distinct columns, one per line. 7 B
003871 unicode/part1/U+FFA8 NormalizationTest.txt ᄄ␊ᄄ Line 15096: HALFWIDTH HANGUL LETTER SSANGTIKEUT. Its distinct columns, one per line. 7 B
003872 unicode/part1/U+FFA9 NormalizationTest.txt ᄅ␊ᄅ Line 15097: HALFWIDTH HANGUL LETTER RIEUL. Its distinct columns, one per line. 7 B
003873 unicode/part1/U+FFAA NormalizationTest.txt ᆰ␊ᆰ Line 15098: HALFWIDTH HANGUL LETTER RIEUL-KIYEOK. Its distinct columns, one per line. 7 B
003874 unicode/part1/U+FFAB NormalizationTest.txt ᆱ␊ᆱ Line 15099: HALFWIDTH HANGUL LETTER RIEUL-MIEUM. Its distinct columns, one per line. 7 B
003875 unicode/part1/U+FFAC NormalizationTest.txt ᆲ␊ᆲ Line 15100: HALFWIDTH HANGUL LETTER RIEUL-PIEUP. Its distinct columns, one per line. 7 B
003876 unicode/part1/U+FFAD NormalizationTest.txt ᆳ␊ᆳ Line 15101: HALFWIDTH HANGUL LETTER RIEUL-SIOS. Its distinct columns, one per line. 7 B
003877 unicode/part1/U+FFAE NormalizationTest.txt ᆴ␊ᆴ Line 15102: HALFWIDTH HANGUL LETTER RIEUL-THIEUTH. Its distinct columns, one per line. 7 B
003878 unicode/part1/U+FFAF NormalizationTest.txt ᆵ␊ᆵ Line 15103: HALFWIDTH HANGUL LETTER RIEUL-PHIEUPH. Its distinct columns, one per line. 7 B
003879 unicode/part1/U+FFB0 NormalizationTest.txt ᄚ␊ᄚ Line 15104: HALFWIDTH HANGUL LETTER RIEUL-HIEUH. Its distinct columns, one per line. 7 B
003880 unicode/part1/U+FFB1 NormalizationTest.txt ᄆ␊ᄆ Line 15105: HALFWIDTH HANGUL LETTER MIEUM. Its distinct columns, one per line. 7 B
003881 unicode/part1/U+FFB2 NormalizationTest.txt ᄇ␊ᄇ Line 15106: HALFWIDTH HANGUL LETTER PIEUP. Its distinct columns, one per line. 7 B
003882 unicode/part1/U+FFB3 NormalizationTest.txt ᄈ␊ᄈ Line 15107: HALFWIDTH HANGUL LETTER SSANGPIEUP. Its distinct columns, one per line. 7 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.