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
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
003883 unicode/part1/U+FFB4 NormalizationTest.txt ᄡ␊ᄡ Line 15108: HALFWIDTH HANGUL LETTER PIEUP-SIOS. Its distinct columns, one per line. 7 B
003884 unicode/part1/U+FFB5 NormalizationTest.txt ᄉ␊ᄉ Line 15109: HALFWIDTH HANGUL LETTER SIOS. Its distinct columns, one per line. 7 B
003885 unicode/part1/U+FFB6 NormalizationTest.txt ᄊ␊ᄊ Line 15110: HALFWIDTH HANGUL LETTER SSANGSIOS. Its distinct columns, one per line. 7 B
003886 unicode/part1/U+FFB7 NormalizationTest.txt ᄋ␊ᄋ Line 15111: HALFWIDTH HANGUL LETTER IEUNG. Its distinct columns, one per line. 7 B
003887 unicode/part1/U+FFB8 NormalizationTest.txt ᄌ␊ᄌ Line 15112: HALFWIDTH HANGUL LETTER CIEUC. Its distinct columns, one per line. 7 B
003888 unicode/part1/U+FFB9 NormalizationTest.txt ᄍ␊ᄍ Line 15113: HALFWIDTH HANGUL LETTER SSANGCIEUC. Its distinct columns, one per line. 7 B
003889 unicode/part1/U+FFBA NormalizationTest.txt ᄎ␊ᄎ Line 15114: HALFWIDTH HANGUL LETTER CHIEUCH. Its distinct columns, one per line. 7 B
003890 unicode/part1/U+FFBB NormalizationTest.txt ᄏ␊ᄏ Line 15115: HALFWIDTH HANGUL LETTER KHIEUKH. Its distinct columns, one per line. 7 B
003891 unicode/part1/U+FFBC NormalizationTest.txt ᄐ␊ᄐ Line 15116: HALFWIDTH HANGUL LETTER THIEUTH. Its distinct columns, one per line. 7 B
003892 unicode/part1/U+FFBD NormalizationTest.txt ᄑ␊ᄑ Line 15117: HALFWIDTH HANGUL LETTER PHIEUPH. Its distinct columns, one per line. 7 B
003893 unicode/part1/U+FFBE NormalizationTest.txt ᄒ␊ᄒ Line 15118: HALFWIDTH HANGUL LETTER HIEUH. Its distinct columns, one per line. 7 B
003894 unicode/part1/U+FFC2 NormalizationTest.txt ᅡ␊ᅡ Line 15119: HALFWIDTH HANGUL LETTER A. Its distinct columns, one per line. 7 B
003895 unicode/part1/U+FFC3 NormalizationTest.txt ᅢ␊ᅢ Line 15120: HALFWIDTH HANGUL LETTER AE. Its distinct columns, one per line. 7 B
003896 unicode/part1/U+FFC4 NormalizationTest.txt ᅣ␊ᅣ Line 15121: HALFWIDTH HANGUL LETTER YA. Its distinct columns, one per line. 7 B
003897 unicode/part1/U+FFC5 NormalizationTest.txt ᅤ␊ᅤ Line 15122: HALFWIDTH HANGUL LETTER YAE. Its distinct columns, one per line. 7 B
003898 unicode/part1/U+FFC6 NormalizationTest.txt ᅥ␊ᅥ Line 15123: HALFWIDTH HANGUL LETTER EO. Its distinct columns, one per line. 7 B
003899 unicode/part1/U+FFC7 NormalizationTest.txt ᅦ␊ᅦ Line 15124: HALFWIDTH HANGUL LETTER E. 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.