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

1,049 of 11,911 cases

Case Name Expected Note Size
002557 unicode/part1/U+F9A7 NormalizationTest.txt 獵␊獵 Line 13782: CJK COMPATIBILITY IDEOGRAPH-F9A7. Its distinct columns, one per line. 7 B
002558 unicode/part1/U+F9A8 NormalizationTest.txt 令␊令 Line 13783: CJK COMPATIBILITY IDEOGRAPH-F9A8. Its distinct columns, one per line. 7 B
002559 unicode/part1/U+F9A9 NormalizationTest.txt 囹␊囹 Line 13784: CJK COMPATIBILITY IDEOGRAPH-F9A9. Its distinct columns, one per line. 7 B
002560 unicode/part1/U+F9AA NormalizationTest.txt 寧␊寧 Line 13785: CJK COMPATIBILITY IDEOGRAPH-F9AA. Its distinct columns, one per line. 7 B
002561 unicode/part1/U+F9AB NormalizationTest.txt 嶺␊嶺 Line 13786: CJK COMPATIBILITY IDEOGRAPH-F9AB. Its distinct columns, one per line. 7 B
002562 unicode/part1/U+F9AC NormalizationTest.txt 怜␊怜 Line 13787: CJK COMPATIBILITY IDEOGRAPH-F9AC. Its distinct columns, one per line. 7 B
002563 unicode/part1/U+F9AD NormalizationTest.txt 玲␊玲 Line 13788: CJK COMPATIBILITY IDEOGRAPH-F9AD. Its distinct columns, one per line. 7 B
002564 unicode/part1/U+F9AE NormalizationTest.txt 瑩␊瑩 Line 13789: CJK COMPATIBILITY IDEOGRAPH-F9AE. Its distinct columns, one per line. 7 B
002565 unicode/part1/U+F9AF NormalizationTest.txt 羚␊羚 Line 13790: CJK COMPATIBILITY IDEOGRAPH-F9AF. Its distinct columns, one per line. 7 B
002566 unicode/part1/U+F9B0 NormalizationTest.txt 聆␊聆 Line 13791: CJK COMPATIBILITY IDEOGRAPH-F9B0. Its distinct columns, one per line. 7 B
002567 unicode/part1/U+F9B1 NormalizationTest.txt 鈴␊鈴 Line 13792: CJK COMPATIBILITY IDEOGRAPH-F9B1. Its distinct columns, one per line. 7 B
002568 unicode/part1/U+F9B2 NormalizationTest.txt 零␊零 Line 13793: CJK COMPATIBILITY IDEOGRAPH-F9B2. Its distinct columns, one per line. 7 B
002569 unicode/part1/U+F9B3 NormalizationTest.txt 靈␊靈 Line 13794: CJK COMPATIBILITY IDEOGRAPH-F9B3. Its distinct columns, one per line. 7 B
002570 unicode/part1/U+F9B4 NormalizationTest.txt 領␊領 Line 13795: CJK COMPATIBILITY IDEOGRAPH-F9B4. Its distinct columns, one per line. 7 B
002571 unicode/part1/U+F9B5 NormalizationTest.txt 例␊例 Line 13796: CJK COMPATIBILITY IDEOGRAPH-F9B5. Its distinct columns, one per line. 7 B
002572 unicode/part1/U+F9B6 NormalizationTest.txt 禮␊禮 Line 13797: CJK COMPATIBILITY IDEOGRAPH-F9B6. Its distinct columns, one per line. 7 B
002573 unicode/part1/U+F9B7 NormalizationTest.txt 醴␊醴 Line 13798: CJK COMPATIBILITY IDEOGRAPH-F9B7. Its distinct columns, one per line. 7 B
002574 unicode/part1/U+F9B8 NormalizationTest.txt 隸␊隸 Line 13799: CJK COMPATIBILITY IDEOGRAPH-F9B8. Its distinct columns, one per line. 7 B
002575 unicode/part1/U+F9B9 NormalizationTest.txt 惡␊惡 Line 13800: CJK COMPATIBILITY IDEOGRAPH-F9B9. Its distinct columns, one per line. 7 B
002576 unicode/part1/U+F9BA NormalizationTest.txt 了␊了 Line 13801: CJK COMPATIBILITY IDEOGRAPH-F9BA. Its distinct columns, one per line. 7 B
002577 unicode/part1/U+F9BB NormalizationTest.txt 僚␊僚 Line 13802: CJK COMPATIBILITY IDEOGRAPH-F9BB. Its distinct columns, one per line. 7 B
002578 unicode/part1/U+F9BC NormalizationTest.txt 寮␊寮 Line 13803: CJK COMPATIBILITY IDEOGRAPH-F9BC. Its distinct columns, one per line. 7 B
002579 unicode/part1/U+F9BD NormalizationTest.txt 尿␊尿 Line 13804: CJK COMPATIBILITY IDEOGRAPH-F9BD. Its distinct columns, one per line. 7 B
002580 unicode/part1/U+F9BE NormalizationTest.txt 料␊料 Line 13805: CJK COMPATIBILITY IDEOGRAPH-F9BE. Its distinct columns, one per line. 7 B
002581 unicode/part1/U+F9BF NormalizationTest.txt 樂␊樂 Line 13806: CJK COMPATIBILITY IDEOGRAPH-F9BF. Its distinct columns, one per line. 7 B
002582 unicode/part1/U+F9C0 NormalizationTest.txt 燎␊燎 Line 13807: CJK COMPATIBILITY IDEOGRAPH-F9C0. Its distinct columns, one per line. 7 B
002583 unicode/part1/U+F9C1 NormalizationTest.txt 療␊療 Line 13808: CJK COMPATIBILITY IDEOGRAPH-F9C1. Its distinct columns, one per line. 7 B
002584 unicode/part1/U+F9C2 NormalizationTest.txt 蓼␊蓼 Line 13809: CJK COMPATIBILITY IDEOGRAPH-F9C2. Its distinct columns, one per line. 7 B
002585 unicode/part1/U+F9C3 NormalizationTest.txt 遼␊遼 Line 13810: CJK COMPATIBILITY IDEOGRAPH-F9C3. Its distinct columns, one per line. 7 B
002586 unicode/part1/U+F9C4 NormalizationTest.txt 龍␊龍 Line 13811: CJK COMPATIBILITY IDEOGRAPH-F9C4. Its distinct columns, one per line. 7 B
002587 unicode/part1/U+F9C5 NormalizationTest.txt 暈␊暈 Line 13812: CJK COMPATIBILITY IDEOGRAPH-F9C5. Its distinct columns, one per line. 7 B
002588 unicode/part1/U+F9C6 NormalizationTest.txt 阮␊阮 Line 13813: CJK COMPATIBILITY IDEOGRAPH-F9C6. Its distinct columns, one per line. 7 B
002589 unicode/part1/U+F9C7 NormalizationTest.txt 劉␊劉 Line 13814: CJK COMPATIBILITY IDEOGRAPH-F9C7. Its distinct columns, one per line. 7 B
002590 unicode/part1/U+F9C8 NormalizationTest.txt 杻␊杻 Line 13815: CJK COMPATIBILITY IDEOGRAPH-F9C8. Its distinct columns, one per line. 7 B
002591 unicode/part1/U+F9C9 NormalizationTest.txt 柳␊柳 Line 13816: CJK COMPATIBILITY IDEOGRAPH-F9C9. Its distinct columns, one per line. 7 B
002592 unicode/part1/U+F9CA NormalizationTest.txt 流␊流 Line 13817: CJK COMPATIBILITY IDEOGRAPH-F9CA. Its distinct columns, one per line. 7 B
002593 unicode/part1/U+F9CB NormalizationTest.txt 溜␊溜 Line 13818: CJK COMPATIBILITY IDEOGRAPH-F9CB. Its distinct columns, one per line. 7 B
002594 unicode/part1/U+F9CC NormalizationTest.txt 琉␊琉 Line 13819: CJK COMPATIBILITY IDEOGRAPH-F9CC. Its distinct columns, one per line. 7 B
002595 unicode/part1/U+F9CD NormalizationTest.txt 留␊留 Line 13820: CJK COMPATIBILITY IDEOGRAPH-F9CD. Its distinct columns, one per line. 7 B
002596 unicode/part1/U+F9CE NormalizationTest.txt 硫␊硫 Line 13821: CJK COMPATIBILITY IDEOGRAPH-F9CE. Its distinct columns, one per line. 7 B
002597 unicode/part1/U+F9CF NormalizationTest.txt 紐␊紐 Line 13822: CJK COMPATIBILITY IDEOGRAPH-F9CF. Its distinct columns, one per line. 7 B
002598 unicode/part1/U+F9D0 NormalizationTest.txt 類␊類 Line 13823: CJK COMPATIBILITY IDEOGRAPH-F9D0. Its distinct columns, one per line. 7 B
002599 unicode/part1/U+F9D1 NormalizationTest.txt 六␊六 Line 13824: CJK COMPATIBILITY IDEOGRAPH-F9D1. Its distinct columns, one per line. 7 B
002600 unicode/part1/U+F9D2 NormalizationTest.txt 戮␊戮 Line 13825: CJK COMPATIBILITY IDEOGRAPH-F9D2. Its distinct columns, one per line. 7 B
002601 unicode/part1/U+F9D3 NormalizationTest.txt 陸␊陸 Line 13826: CJK COMPATIBILITY IDEOGRAPH-F9D3. Its distinct columns, one per line. 7 B
002602 unicode/part1/U+F9D4 NormalizationTest.txt 倫␊倫 Line 13827: CJK COMPATIBILITY IDEOGRAPH-F9D4. Its distinct columns, one per line. 7 B
002603 unicode/part1/U+F9D5 NormalizationTest.txt 崙␊崙 Line 13828: CJK COMPATIBILITY IDEOGRAPH-F9D5. Its distinct columns, one per line. 7 B
002604 unicode/part1/U+F9D6 NormalizationTest.txt 淪␊淪 Line 13829: CJK COMPATIBILITY IDEOGRAPH-F9D6. Its distinct columns, one per line. 7 B
002605 unicode/part1/U+F9D7 NormalizationTest.txt 輪␊輪 Line 13830: CJK COMPATIBILITY IDEOGRAPH-F9D7. Its distinct columns, one per line. 7 B
002606 unicode/part1/U+F9D8 NormalizationTest.txt 律␊律 Line 13831: CJK COMPATIBILITY IDEOGRAPH-F9D8. 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.