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

132 of 11,911 cases

Case Name Expected Note Size
008972 ucd/maybe/U+3099 Unicode Character Database ゙␊a゙␊゙゙␊ゔ␊ゔ゙␊ゔ̴␊う͏゙␊うa゙␊ゔ́␊が␊が゙␊が̴␊か͏゙␊かa゙␊が́␊ぎ␊ぎ゙␊ぎ̴␊き͏゙␊きa゙␊ぎ́␊ぐ␊ぐ゙… U+3099 alone, doubled, and after each of the 48 characters it composes with: next to it, doubled, behind U+0334 (class 1), U+034F (class 0), a letter and U+0301, and after the partner's own decomposition. 2.5 KiB
008973 ucd/maybe/U+309A Unicode Character Database ゚␊a゚␊゚゚␊ぱ␊ぱ゚␊ぱ̴␊は͏゚␊はa゚␊ぱ́␊ぴ␊ぴ゚␊ぴ̴␊ひ͏゚␊ひa゚␊ぴ́␊ぷ␊ぷ゚␊ぷ̴␊ふ͏゚␊ふa゚␊ぷ́␊ぺ␊ぺ゚… U+309A alone, doubled, and after each of the 10 characters it composes with: next to it, doubled, behind U+0334 (class 1), U+034F (class 0), a letter and U+0301, and after the partner's own decomposition. 535 B
008974 ucd/maybe/U+110BA Unicode Character Database 𑂺␊a𑂺␊𑂺𑂺␊𑂚␊𑂚𑂺␊𑂚̴␊𑂙͏𑂺␊𑂙a𑂺␊𑂚́␊𑂜␊𑂜𑂺␊𑂜̴␊𑂛͏𑂺␊𑂛a𑂺␊𑂜́␊𑂫␊𑂫𑂺␊𑂫̴␊𑂥͏𑂺␊𑂥a𑂺␊𑂫́ U+110BA alone, doubled, and after each of the 3 characters it composes with: next to it, doubled, behind U+0334 (class 1), U+034F (class 0), a letter and U+0301, and after the partner's own decomposition. 214 B
008975 ucd/maybe/U+11127 Unicode Character Database 𑄧␊a𑄧␊𑄧𑄧␊𑄮␊𑄮𑄧␊𑄱̴𑄧␊𑄱͏𑄧␊𑄱a𑄧␊𑄱́𑄧␊𑄯␊𑄯𑄧␊𑄲̴𑄧␊𑄲͏𑄧␊𑄲a𑄧␊𑄲́𑄧 U+11127 alone, doubled, and after each of the 2 characters it composes with: next to it, doubled, behind U+0334 (class 1), U+034F (class 0), a letter and U+0301, and after the partner's own decomposition. 149 B
008976 ucd/maybe/U+1133E Unicode Character Database 𑌾␊a𑌾␊𑌾𑌾␊𑍋␊𑍋𑌾␊𑍇̴𑌾␊𑍇͏𑌾␊𑍇a𑌾␊𑍇́𑌾 U+1133E alone, doubled, and after each of the 1 characters it composes with: next to it, doubled, behind U+0334 (class 1), U+034F (class 0), a letter and U+0301, and after the partner's own decomposition. 84 B
008977 ucd/maybe/U+11357 Unicode Character Database 𑍗␊a𑍗␊𑍗𑍗␊𑍌␊𑍌𑍗␊𑍇̴𑍗␊𑍇͏𑍗␊𑍇a𑍗␊𑍇́𑍗 U+11357 alone, doubled, and after each of the 1 characters it composes with: next to it, doubled, behind U+0334 (class 1), U+034F (class 0), a letter and U+0301, and after the partner's own decomposition. 84 B
008978 ucd/maybe/U+113B8 Unicode Character Database 𑎸␊a𑎸␊𑎸𑎸␊𑏇␊𑏇𑎸␊𑏂̴𑎸␊𑏂͏𑎸␊𑏂a𑎸␊𑏂́𑎸 U+113B8 alone, doubled, and after each of the 1 characters it composes with: next to it, doubled, behind U+0334 (class 1), U+034F (class 0), a letter and U+0301, and after the partner's own decomposition. 84 B
008979 ucd/maybe/U+113BB Unicode Character Database 𑎻␊a𑎻␊𑎻𑎻␊𑎅␊𑎅𑎻␊𑎄̴𑎻␊𑎄͏𑎻␊𑎄a𑎻␊𑎄́𑎻 U+113BB alone, doubled, and after each of the 1 characters it composes with: next to it, doubled, behind U+0334 (class 1), U+034F (class 0), a letter and U+0301, and after the partner's own decomposition. 84 B
008980 ucd/maybe/U+113C2 Unicode Character Database 𑏂␊a𑏂␊𑏅␊𑎎␊𑎎𑏂␊𑎋̴𑏂␊𑎋͏𑏂␊𑎋a𑏂␊𑎋́𑏂␊𑏅𑏂␊𑏂̴𑏂␊𑏂͏𑏂␊𑏂a𑏂␊𑏂́𑏂 U+113C2 alone, doubled, and after each of the 2 characters it composes with: next to it, doubled, behind U+0334 (class 1), U+034F (class 0), a letter and U+0301, and after the partner's own decomposition. 140 B
008981 ucd/maybe/U+113C5 Unicode Character Database 𑏅␊a𑏅␊𑏅𑏅 U+113C5 alone, doubled, and after each of the 0 characters it composes with: next to it, doubled, behind U+0334 (class 1), U+034F (class 0), a letter and U+0301, and after the partner's own decomposition. 19 B
008982 ucd/maybe/U+113C7 Unicode Character Database 𑏇␊a𑏇␊𑏇𑏇 U+113C7 alone, doubled, and after each of the 0 characters it composes with: next to it, doubled, behind U+0334 (class 1), U+034F (class 0), a letter and U+0301, and after the partner's own decomposition. 19 B
008983 ucd/maybe/U+113C8 Unicode Character Database 𑏈␊a𑏈␊𑏈𑏈 U+113C8 alone, doubled, and after each of the 0 characters it composes with: next to it, doubled, behind U+0334 (class 1), U+034F (class 0), a letter and U+0301, and after the partner's own decomposition. 19 B
008984 ucd/maybe/U+113C9 Unicode Character Database 𑏉␊a𑏉␊𑏉𑏉␊𑎃␊𑎃𑏉␊𑎂̴𑏉␊𑎂͏𑏉␊𑎂a𑏉␊𑎂́𑏉␊𑎑␊𑎑𑏉␊𑎐̴𑏉␊𑎐͏𑏉␊𑎐a𑏉␊𑎐́𑏉␊𑏈␊𑏈𑏉␊𑏂̴𑏉␊𑏂͏𑏉␊𑏂a𑏉␊𑏂́𑏉 U+113C9 alone, doubled, and after each of the 3 characters it composes with: next to it, doubled, behind U+0334 (class 1), U+034F (class 0), a letter and U+0301, and after the partner's own decomposition. 214 B
008985 ucd/maybe/U+114B0 Unicode Character Database 𑒰␊a𑒰␊𑒰𑒰␊𑒼␊𑒼𑒰␊𑒹̴𑒰␊𑒹͏𑒰␊𑒹a𑒰␊𑒹́𑒰 U+114B0 alone, doubled, and after each of the 1 characters it composes with: next to it, doubled, behind U+0334 (class 1), U+034F (class 0), a letter and U+0301, and after the partner's own decomposition. 84 B
008986 ucd/maybe/U+114BA Unicode Character Database 𑒺␊a𑒺␊𑒺𑒺␊𑒻␊𑒻𑒺␊𑒹̴𑒺␊𑒹͏𑒺␊𑒹a𑒺␊𑒹́𑒺 U+114BA alone, doubled, and after each of the 1 characters it composes with: next to it, doubled, behind U+0334 (class 1), U+034F (class 0), a letter and U+0301, and after the partner's own decomposition. 84 B
008987 ucd/maybe/U+114BD Unicode Character Database 𑒽␊a𑒽␊𑒽𑒽␊𑒾␊𑒾𑒽␊𑒹̴𑒽␊𑒹͏𑒽␊𑒹a𑒽␊𑒹́𑒽 U+114BD alone, doubled, and after each of the 1 characters it composes with: next to it, doubled, behind U+0334 (class 1), U+034F (class 0), a letter and U+0301, and after the partner's own decomposition. 84 B
008988 ucd/maybe/U+115AF Unicode Character Database 𑖯␊a𑖯␊𑖯𑖯␊𑖺␊𑖺𑖯␊𑖸̴𑖯␊𑖸͏𑖯␊𑖸a𑖯␊𑖸́𑖯␊𑖻␊𑖻𑖯␊𑖹̴𑖯␊𑖹͏𑖯␊𑖹a𑖯␊𑖹́𑖯 U+115AF alone, doubled, and after each of the 2 characters it composes with: next to it, doubled, behind U+0334 (class 1), U+034F (class 0), a letter and U+0301, and after the partner's own decomposition. 149 B
008989 ucd/maybe/U+11930 Unicode Character Database 𑤰␊a𑤰␊𑤰𑤰␊𑤸␊𑤸𑤰␊𑤵̴𑤰␊𑤵͏𑤰␊𑤵a𑤰␊𑤵́𑤰 U+11930 alone, doubled, and after each of the 1 characters it composes with: next to it, doubled, behind U+0334 (class 1), U+034F (class 0), a letter and U+0301, and after the partner's own decomposition. 84 B
008990 ucd/maybe/U+1611E Unicode Character Database 𖄞␊a𖄞␊𖄡␊𖄡𖄞␊𖄞̴𖄞␊𖄞͏𖄞␊𖄞a𖄞␊𖄞́𖄞 U+1611E alone, doubled, and after each of the 1 characters it composes with: next to it, doubled, behind U+0334 (class 1), U+034F (class 0), a letter and U+0301, and after the partner's own decomposition. 75 B
008991 ucd/maybe/U+1611F Unicode Character Database 𖄟␊a𖄟␊𖄟𖄟␊𖄣␊𖄣𖄟␊𖄞̴𖄟␊𖄞͏𖄟␊𖄞a𖄟␊𖄞́𖄟␊𖄦␊𖄦𖄟␊𖄡̴𖄟␊𖄡͏𖄟␊𖄡a𖄟␊𖄦␊𖄡́𖄟␊𖄧␊𖄧𖄟␊𖄢̴𖄟␊𖄢͏𖄟␊𖄢a𖄟␊𖄧␊𖄢́𖄟… U+1611F alone, doubled, and after each of the 4 characters it composes with: next to it, doubled, behind U+0334 (class 1), U+034F (class 0), a letter and U+0301, and after the partner's own decomposition. 305 B
008992 ucd/maybe/U+16120 Unicode Character Database 𖄠␊a𖄠␊𖄠𖄠␊𖄥␊𖄥𖄠␊𖄞̴𖄠␊𖄞͏𖄠␊𖄞a𖄠␊𖄞́𖄠␊𖄨␊𖄨𖄠␊𖄡̴𖄠␊𖄡͏𖄠␊𖄡a𖄠␊𖄨␊𖄡́𖄠 U+16120 alone, doubled, and after each of the 2 characters it composes with: next to it, doubled, behind U+0334 (class 1), U+034F (class 0), a letter and U+0301, and after the partner's own decomposition. 162 B
008993 ucd/maybe/U+16121 Unicode Character Database 𖄡␊a𖄡␊𖄡𖄡 U+16121 alone, doubled, and after each of the 0 characters it composes with: next to it, doubled, behind U+0334 (class 1), U+034F (class 0), a letter and U+0301, and after the partner's own decomposition. 19 B
008994 ucd/maybe/U+16122 Unicode Character Database 𖄢␊a𖄢␊𖄢𖄢 U+16122 alone, doubled, and after each of the 0 characters it composes with: next to it, doubled, behind U+0334 (class 1), U+034F (class 0), a letter and U+0301, and after the partner's own decomposition. 19 B
008995 ucd/maybe/U+16123 Unicode Character Database 𖄣␊a𖄣␊𖄣𖄣 U+16123 alone, doubled, and after each of the 0 characters it composes with: next to it, doubled, behind U+0334 (class 1), U+034F (class 0), a letter and U+0301, and after the partner's own decomposition. 19 B
008996 ucd/maybe/U+16124 Unicode Character Database 𖄤␊a𖄤␊𖄤𖄤 U+16124 alone, doubled, and after each of the 0 characters it composes with: next to it, doubled, behind U+0334 (class 1), U+034F (class 0), a letter and U+0301, and after the partner's own decomposition. 19 B
008997 ucd/maybe/U+16125 Unicode Character Database 𖄥␊a𖄥␊𖄥𖄥 U+16125 alone, doubled, and after each of the 0 characters it composes with: next to it, doubled, behind U+0334 (class 1), U+034F (class 0), a letter and U+0301, and after the partner's own decomposition. 19 B
008998 ucd/maybe/U+16126 Unicode Character Database 𖄦␊a𖄦␊𖄦𖄦 U+16126 alone, doubled, and after each of the 0 characters it composes with: next to it, doubled, behind U+0334 (class 1), U+034F (class 0), a letter and U+0301, and after the partner's own decomposition. 19 B
008999 ucd/maybe/U+16127 Unicode Character Database 𖄧␊a𖄧␊𖄧𖄧 U+16127 alone, doubled, and after each of the 0 characters it composes with: next to it, doubled, behind U+0334 (class 1), U+034F (class 0), a letter and U+0301, and after the partner's own decomposition. 19 B
009000 ucd/maybe/U+16128 Unicode Character Database 𖄨␊a𖄨␊𖄨𖄨 U+16128 alone, doubled, and after each of the 0 characters it composes with: next to it, doubled, behind U+0334 (class 1), U+034F (class 0), a letter and U+0301, and after the partner's own decomposition. 19 B
009001 ucd/maybe/U+16129 Unicode Character Database 𖄩␊a𖄩␊𖄩𖄩␊𖄢␊𖄢𖄩␊𖄞̴𖄩␊𖄞͏𖄩␊𖄞a𖄩␊𖄞́𖄩 U+16129 alone, doubled, and after each of the 1 characters it composes with: next to it, doubled, behind U+0334 (class 1), U+034F (class 0), a letter and U+0301, and after the partner's own decomposition. 84 B
009002 ucd/maybe/U+16D67 Unicode Character Database 𖵧␊a𖵧␊𖵨␊𖵩␊𖵪␊𖵣̴𖵧␊𖵣͏𖵧␊𖵣a𖵧␊𖵣́𖵧␊𖵨𖵧␊𖵧̴𖵧␊𖵧͏𖵧␊𖵧a𖵧␊𖵧́𖵧␊𖵪␊𖵪𖵧␊𖵩̴𖵧␊𖵩͏𖵧… U+16D67 alone, doubled, and after each of the 3 characters it composes with: next to it, doubled, behind U+0334 (class 1), U+034F (class 0), a letter and U+0301, and after the partner's own decomposition. 205 B
009003 ucd/maybe/U+16D68 Unicode Character Database 𖵨␊a𖵨␊𖵨𖵨 U+16D68 alone, doubled, and after each of the 0 characters it composes with: next to it, doubled, behind U+0334 (class 1), U+034F (class 0), a letter and U+0301, and after the partner's own decomposition. 19 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.