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
002507 unicode/part1/U+F975 NormalizationTest.txt 掠␊掠 Line 13732: CJK COMPATIBILITY IDEOGRAPH-F975. Its distinct columns, one per line. 7 B
002508 unicode/part1/U+F976 NormalizationTest.txt 略␊略 Line 13733: CJK COMPATIBILITY IDEOGRAPH-F976. Its distinct columns, one per line. 7 B
002509 unicode/part1/U+F977 NormalizationTest.txt 亮␊亮 Line 13734: CJK COMPATIBILITY IDEOGRAPH-F977. Its distinct columns, one per line. 7 B
002510 unicode/part1/U+F978 NormalizationTest.txt 兩␊兩 Line 13735: CJK COMPATIBILITY IDEOGRAPH-F978. Its distinct columns, one per line. 7 B
002511 unicode/part1/U+F979 NormalizationTest.txt 凉␊凉 Line 13736: CJK COMPATIBILITY IDEOGRAPH-F979. Its distinct columns, one per line. 7 B
002512 unicode/part1/U+F97A NormalizationTest.txt 梁␊梁 Line 13737: CJK COMPATIBILITY IDEOGRAPH-F97A. Its distinct columns, one per line. 7 B
002513 unicode/part1/U+F97B NormalizationTest.txt 糧␊糧 Line 13738: CJK COMPATIBILITY IDEOGRAPH-F97B. Its distinct columns, one per line. 7 B
002514 unicode/part1/U+F97C NormalizationTest.txt 良␊良 Line 13739: CJK COMPATIBILITY IDEOGRAPH-F97C. Its distinct columns, one per line. 7 B
002515 unicode/part1/U+F97D NormalizationTest.txt 諒␊諒 Line 13740: CJK COMPATIBILITY IDEOGRAPH-F97D. Its distinct columns, one per line. 7 B
002516 unicode/part1/U+F97E NormalizationTest.txt 量␊量 Line 13741: CJK COMPATIBILITY IDEOGRAPH-F97E. Its distinct columns, one per line. 7 B
002517 unicode/part1/U+F97F NormalizationTest.txt 勵␊勵 Line 13742: CJK COMPATIBILITY IDEOGRAPH-F97F. Its distinct columns, one per line. 7 B
002518 unicode/part1/U+F980 NormalizationTest.txt 呂␊呂 Line 13743: CJK COMPATIBILITY IDEOGRAPH-F980. Its distinct columns, one per line. 7 B
002519 unicode/part1/U+F981 NormalizationTest.txt 女␊女 Line 13744: CJK COMPATIBILITY IDEOGRAPH-F981. Its distinct columns, one per line. 7 B
002520 unicode/part1/U+F982 NormalizationTest.txt 廬␊廬 Line 13745: CJK COMPATIBILITY IDEOGRAPH-F982. Its distinct columns, one per line. 7 B
002521 unicode/part1/U+F983 NormalizationTest.txt 旅␊旅 Line 13746: CJK COMPATIBILITY IDEOGRAPH-F983. Its distinct columns, one per line. 7 B
002522 unicode/part1/U+F984 NormalizationTest.txt 濾␊濾 Line 13747: CJK COMPATIBILITY IDEOGRAPH-F984. Its distinct columns, one per line. 7 B
002523 unicode/part1/U+F985 NormalizationTest.txt 礪␊礪 Line 13748: CJK COMPATIBILITY IDEOGRAPH-F985. Its distinct columns, one per line. 7 B
002524 unicode/part1/U+F986 NormalizationTest.txt 閭␊閭 Line 13749: CJK COMPATIBILITY IDEOGRAPH-F986. Its distinct columns, one per line. 7 B
002525 unicode/part1/U+F987 NormalizationTest.txt 驪␊驪 Line 13750: CJK COMPATIBILITY IDEOGRAPH-F987. Its distinct columns, one per line. 7 B
002526 unicode/part1/U+F988 NormalizationTest.txt 麗␊麗 Line 13751: CJK COMPATIBILITY IDEOGRAPH-F988. Its distinct columns, one per line. 7 B
002527 unicode/part1/U+F989 NormalizationTest.txt 黎␊黎 Line 13752: CJK COMPATIBILITY IDEOGRAPH-F989. Its distinct columns, one per line. 7 B
002528 unicode/part1/U+F98A NormalizationTest.txt 力␊力 Line 13753: CJK COMPATIBILITY IDEOGRAPH-F98A. Its distinct columns, one per line. 7 B
002529 unicode/part1/U+F98B NormalizationTest.txt 曆␊曆 Line 13754: CJK COMPATIBILITY IDEOGRAPH-F98B. Its distinct columns, one per line. 7 B
002530 unicode/part1/U+F98C NormalizationTest.txt 歷␊歷 Line 13755: CJK COMPATIBILITY IDEOGRAPH-F98C. Its distinct columns, one per line. 7 B
002531 unicode/part1/U+F98D NormalizationTest.txt 轢␊轢 Line 13756: CJK COMPATIBILITY IDEOGRAPH-F98D. Its distinct columns, one per line. 7 B
002532 unicode/part1/U+F98E NormalizationTest.txt 年␊年 Line 13757: CJK COMPATIBILITY IDEOGRAPH-F98E. Its distinct columns, one per line. 7 B
002533 unicode/part1/U+F98F NormalizationTest.txt 憐␊憐 Line 13758: CJK COMPATIBILITY IDEOGRAPH-F98F. Its distinct columns, one per line. 7 B
002534 unicode/part1/U+F990 NormalizationTest.txt 戀␊戀 Line 13759: CJK COMPATIBILITY IDEOGRAPH-F990. Its distinct columns, one per line. 7 B
002535 unicode/part1/U+F991 NormalizationTest.txt 撚␊撚 Line 13760: CJK COMPATIBILITY IDEOGRAPH-F991. Its distinct columns, one per line. 7 B
002536 unicode/part1/U+F992 NormalizationTest.txt 漣␊漣 Line 13761: CJK COMPATIBILITY IDEOGRAPH-F992. Its distinct columns, one per line. 7 B
002537 unicode/part1/U+F993 NormalizationTest.txt 煉␊煉 Line 13762: CJK COMPATIBILITY IDEOGRAPH-F993. Its distinct columns, one per line. 7 B
002538 unicode/part1/U+F994 NormalizationTest.txt 璉␊璉 Line 13763: CJK COMPATIBILITY IDEOGRAPH-F994. Its distinct columns, one per line. 7 B
002539 unicode/part1/U+F995 NormalizationTest.txt 秊␊秊 Line 13764: CJK COMPATIBILITY IDEOGRAPH-F995. Its distinct columns, one per line. 7 B
002540 unicode/part1/U+F996 NormalizationTest.txt 練␊練 Line 13765: CJK COMPATIBILITY IDEOGRAPH-F996. Its distinct columns, one per line. 7 B
002541 unicode/part1/U+F997 NormalizationTest.txt 聯␊聯 Line 13766: CJK COMPATIBILITY IDEOGRAPH-F997. Its distinct columns, one per line. 7 B
002542 unicode/part1/U+F998 NormalizationTest.txt 輦␊輦 Line 13767: CJK COMPATIBILITY IDEOGRAPH-F998. Its distinct columns, one per line. 7 B
002543 unicode/part1/U+F999 NormalizationTest.txt 蓮␊蓮 Line 13768: CJK COMPATIBILITY IDEOGRAPH-F999. Its distinct columns, one per line. 7 B
002544 unicode/part1/U+F99A NormalizationTest.txt 連␊連 Line 13769: CJK COMPATIBILITY IDEOGRAPH-F99A. Its distinct columns, one per line. 7 B
002545 unicode/part1/U+F99B NormalizationTest.txt 鍊␊鍊 Line 13770: CJK COMPATIBILITY IDEOGRAPH-F99B. Its distinct columns, one per line. 7 B
002546 unicode/part1/U+F99C NormalizationTest.txt 列␊列 Line 13771: CJK COMPATIBILITY IDEOGRAPH-F99C. Its distinct columns, one per line. 7 B
002547 unicode/part1/U+F99D NormalizationTest.txt 劣␊劣 Line 13772: CJK COMPATIBILITY IDEOGRAPH-F99D. Its distinct columns, one per line. 7 B
002548 unicode/part1/U+F99E NormalizationTest.txt 咽␊咽 Line 13773: CJK COMPATIBILITY IDEOGRAPH-F99E. Its distinct columns, one per line. 7 B
002549 unicode/part1/U+F99F NormalizationTest.txt 烈␊烈 Line 13774: CJK COMPATIBILITY IDEOGRAPH-F99F. Its distinct columns, one per line. 7 B
002550 unicode/part1/U+F9A0 NormalizationTest.txt 裂␊裂 Line 13775: CJK COMPATIBILITY IDEOGRAPH-F9A0. Its distinct columns, one per line. 7 B
002551 unicode/part1/U+F9A1 NormalizationTest.txt 說␊說 Line 13776: CJK COMPATIBILITY IDEOGRAPH-F9A1. Its distinct columns, one per line. 7 B
002552 unicode/part1/U+F9A2 NormalizationTest.txt 廉␊廉 Line 13777: CJK COMPATIBILITY IDEOGRAPH-F9A2. Its distinct columns, one per line. 7 B
002553 unicode/part1/U+F9A3 NormalizationTest.txt 念␊念 Line 13778: CJK COMPATIBILITY IDEOGRAPH-F9A3. Its distinct columns, one per line. 7 B
002554 unicode/part1/U+F9A4 NormalizationTest.txt 捻␊捻 Line 13779: CJK COMPATIBILITY IDEOGRAPH-F9A4. Its distinct columns, one per line. 7 B
002555 unicode/part1/U+F9A5 NormalizationTest.txt 殮␊殮 Line 13780: CJK COMPATIBILITY IDEOGRAPH-F9A5. Its distinct columns, one per line. 7 B
002556 unicode/part1/U+F9A6 NormalizationTest.txt 簾␊簾 Line 13781: CJK COMPATIBILITY IDEOGRAPH-F9A6. 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.