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
002657 unicode/part1/U+FA0B NormalizationTest.txt 廓␊廓 Line 13882: CJK COMPATIBILITY IDEOGRAPH-FA0B. Its distinct columns, one per line. 7 B
002658 unicode/part1/U+FA0C NormalizationTest.txt 兀␊兀 Line 13883: CJK COMPATIBILITY IDEOGRAPH-FA0C. Its distinct columns, one per line. 7 B
002659 unicode/part1/U+FA0D NormalizationTest.txt 嗀␊嗀 Line 13884: CJK COMPATIBILITY IDEOGRAPH-FA0D. Its distinct columns, one per line. 7 B
002660 unicode/part1/U+FA10 NormalizationTest.txt 塚␊塚 Line 13885: CJK COMPATIBILITY IDEOGRAPH-FA10. Its distinct columns, one per line. 7 B
002661 unicode/part1/U+FA12 NormalizationTest.txt 晴␊晴 Line 13886: CJK COMPATIBILITY IDEOGRAPH-FA12. Its distinct columns, one per line. 7 B
002662 unicode/part1/U+FA15 NormalizationTest.txt 凞␊凞 Line 13887: CJK COMPATIBILITY IDEOGRAPH-FA15. Its distinct columns, one per line. 7 B
002663 unicode/part1/U+FA16 NormalizationTest.txt 猪␊猪 Line 13888: CJK COMPATIBILITY IDEOGRAPH-FA16. Its distinct columns, one per line. 7 B
002664 unicode/part1/U+FA17 NormalizationTest.txt 益␊益 Line 13889: CJK COMPATIBILITY IDEOGRAPH-FA17. Its distinct columns, one per line. 7 B
002665 unicode/part1/U+FA18 NormalizationTest.txt 礼␊礼 Line 13890: CJK COMPATIBILITY IDEOGRAPH-FA18. Its distinct columns, one per line. 7 B
002666 unicode/part1/U+FA19 NormalizationTest.txt 神␊神 Line 13891: CJK COMPATIBILITY IDEOGRAPH-FA19. Its distinct columns, one per line. 7 B
002667 unicode/part1/U+FA1A NormalizationTest.txt 祥␊祥 Line 13892: CJK COMPATIBILITY IDEOGRAPH-FA1A. Its distinct columns, one per line. 7 B
002668 unicode/part1/U+FA1B NormalizationTest.txt 福␊福 Line 13893: CJK COMPATIBILITY IDEOGRAPH-FA1B. Its distinct columns, one per line. 7 B
002669 unicode/part1/U+FA1C NormalizationTest.txt 靖␊靖 Line 13894: CJK COMPATIBILITY IDEOGRAPH-FA1C. Its distinct columns, one per line. 7 B
002670 unicode/part1/U+FA1D NormalizationTest.txt 精␊精 Line 13895: CJK COMPATIBILITY IDEOGRAPH-FA1D. Its distinct columns, one per line. 7 B
002671 unicode/part1/U+FA1E NormalizationTest.txt 羽␊羽 Line 13896: CJK COMPATIBILITY IDEOGRAPH-FA1E. Its distinct columns, one per line. 7 B
002672 unicode/part1/U+FA20 NormalizationTest.txt 蘒␊蘒 Line 13897: CJK COMPATIBILITY IDEOGRAPH-FA20. Its distinct columns, one per line. 7 B
002673 unicode/part1/U+FA22 NormalizationTest.txt 諸␊諸 Line 13898: CJK COMPATIBILITY IDEOGRAPH-FA22. Its distinct columns, one per line. 7 B
002674 unicode/part1/U+FA25 NormalizationTest.txt 逸␊逸 Line 13899: CJK COMPATIBILITY IDEOGRAPH-FA25. Its distinct columns, one per line. 7 B
002675 unicode/part1/U+FA26 NormalizationTest.txt 都␊都 Line 13900: CJK COMPATIBILITY IDEOGRAPH-FA26. Its distinct columns, one per line. 7 B
002676 unicode/part1/U+FA2A NormalizationTest.txt 飯␊飯 Line 13901: CJK COMPATIBILITY IDEOGRAPH-FA2A. Its distinct columns, one per line. 7 B
002677 unicode/part1/U+FA2B NormalizationTest.txt 飼␊飼 Line 13902: CJK COMPATIBILITY IDEOGRAPH-FA2B. Its distinct columns, one per line. 7 B
002678 unicode/part1/U+FA2C NormalizationTest.txt 館␊館 Line 13903: CJK COMPATIBILITY IDEOGRAPH-FA2C. Its distinct columns, one per line. 7 B
002679 unicode/part1/U+FA2D NormalizationTest.txt 鶴␊鶴 Line 13904: CJK COMPATIBILITY IDEOGRAPH-FA2D. Its distinct columns, one per line. 7 B
002680 unicode/part1/U+FA2E NormalizationTest.txt 郞␊郞 Line 13905: CJK COMPATIBILITY IDEOGRAPH-FA2E. Its distinct columns, one per line. 7 B
002681 unicode/part1/U+FA2F NormalizationTest.txt 隷␊隷 Line 13906: CJK COMPATIBILITY IDEOGRAPH-FA2F. Its distinct columns, one per line. 7 B
002682 unicode/part1/U+FA30 NormalizationTest.txt 侮␊侮 Line 13907: CJK COMPATIBILITY IDEOGRAPH-FA30. Its distinct columns, one per line. 7 B
002683 unicode/part1/U+FA31 NormalizationTest.txt 僧␊僧 Line 13908: CJK COMPATIBILITY IDEOGRAPH-FA31. Its distinct columns, one per line. 7 B
002684 unicode/part1/U+FA32 NormalizationTest.txt 免␊免 Line 13909: CJK COMPATIBILITY IDEOGRAPH-FA32. Its distinct columns, one per line. 7 B
002685 unicode/part1/U+FA33 NormalizationTest.txt 勉␊勉 Line 13910: CJK COMPATIBILITY IDEOGRAPH-FA33. Its distinct columns, one per line. 7 B
002686 unicode/part1/U+FA34 NormalizationTest.txt 勤␊勤 Line 13911: CJK COMPATIBILITY IDEOGRAPH-FA34. Its distinct columns, one per line. 7 B
002687 unicode/part1/U+FA35 NormalizationTest.txt 卑␊卑 Line 13912: CJK COMPATIBILITY IDEOGRAPH-FA35. Its distinct columns, one per line. 7 B
002688 unicode/part1/U+FA36 NormalizationTest.txt 喝␊喝 Line 13913: CJK COMPATIBILITY IDEOGRAPH-FA36. Its distinct columns, one per line. 7 B
002689 unicode/part1/U+FA37 NormalizationTest.txt 嘆␊嘆 Line 13914: CJK COMPATIBILITY IDEOGRAPH-FA37. Its distinct columns, one per line. 7 B
002690 unicode/part1/U+FA38 NormalizationTest.txt 器␊器 Line 13915: CJK COMPATIBILITY IDEOGRAPH-FA38. Its distinct columns, one per line. 7 B
002691 unicode/part1/U+FA39 NormalizationTest.txt 塀␊塀 Line 13916: CJK COMPATIBILITY IDEOGRAPH-FA39. Its distinct columns, one per line. 7 B
002692 unicode/part1/U+FA3A NormalizationTest.txt 墨␊墨 Line 13917: CJK COMPATIBILITY IDEOGRAPH-FA3A. Its distinct columns, one per line. 7 B
002693 unicode/part1/U+FA3B NormalizationTest.txt 層␊層 Line 13918: CJK COMPATIBILITY IDEOGRAPH-FA3B. Its distinct columns, one per line. 7 B
002694 unicode/part1/U+FA3C NormalizationTest.txt 屮␊屮 Line 13919: CJK COMPATIBILITY IDEOGRAPH-FA3C. Its distinct columns, one per line. 7 B
002695 unicode/part1/U+FA3D NormalizationTest.txt 悔␊悔 Line 13920: CJK COMPATIBILITY IDEOGRAPH-FA3D. Its distinct columns, one per line. 7 B
002696 unicode/part1/U+FA3E NormalizationTest.txt 慨␊慨 Line 13921: CJK COMPATIBILITY IDEOGRAPH-FA3E. Its distinct columns, one per line. 7 B
002697 unicode/part1/U+FA3F NormalizationTest.txt 憎␊憎 Line 13922: CJK COMPATIBILITY IDEOGRAPH-FA3F. Its distinct columns, one per line. 7 B
002698 unicode/part1/U+FA40 NormalizationTest.txt 懲␊懲 Line 13923: CJK COMPATIBILITY IDEOGRAPH-FA40. Its distinct columns, one per line. 7 B
002699 unicode/part1/U+FA41 NormalizationTest.txt 敏␊敏 Line 13924: CJK COMPATIBILITY IDEOGRAPH-FA41. Its distinct columns, one per line. 7 B
002700 unicode/part1/U+FA42 NormalizationTest.txt 既␊既 Line 13925: CJK COMPATIBILITY IDEOGRAPH-FA42. Its distinct columns, one per line. 7 B
002701 unicode/part1/U+FA43 NormalizationTest.txt 暑␊暑 Line 13926: CJK COMPATIBILITY IDEOGRAPH-FA43. Its distinct columns, one per line. 7 B
002702 unicode/part1/U+FA44 NormalizationTest.txt 梅␊梅 Line 13927: CJK COMPATIBILITY IDEOGRAPH-FA44. Its distinct columns, one per line. 7 B
002703 unicode/part1/U+FA45 NormalizationTest.txt 海␊海 Line 13928: CJK COMPATIBILITY IDEOGRAPH-FA45. Its distinct columns, one per line. 7 B
002704 unicode/part1/U+FA46 NormalizationTest.txt 渚␊渚 Line 13929: CJK COMPATIBILITY IDEOGRAPH-FA46. Its distinct columns, one per line. 7 B
002705 unicode/part1/U+FA47 NormalizationTest.txt 漢␊漢 Line 13930: CJK COMPATIBILITY IDEOGRAPH-FA47. Its distinct columns, one per line. 7 B
002706 unicode/part1/U+FA48 NormalizationTest.txt 煮␊煮 Line 13931: CJK COMPATIBILITY IDEOGRAPH-FA48. 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.