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
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
009004 ucd/no/U+0340..U+F974 Unicode Character Database ̀́␊̣̀␊̀ͅ␊़̀␊゙̀␊́́␊̣́␊́ͅ␊़́␊゙́␊̓́␊̣̓␊̓ͅ␊़̓␊゙̓␊̈́́␊̣̈́␊̈́ͅ␊़̈́␊゙̈́␊ʹ́␊ʹ̣␊ʹͅ␊ʹ़␊… Each character here never appears in NFC. It is followed by each of U+0301, U+0323, U+0345, U+093C and U+3099, one pair per line. 5.8 KiB
009005 ucd/no/U+F975..U+FA3B Unicode Character Database 掠́␊掠̣␊掠ͅ␊掠़␊掠゙␊略́␊略̣␊略ͅ␊略़␊略゙␊亮́␊亮̣␊亮ͅ␊亮़␊亮゙␊兩́␊兩̣␊兩ͅ␊兩़␊兩゙␊凉́␊凉̣␊凉ͅ␊凉़␊… Each character here never appears in NFC. It is followed by each of U+0301, U+0323, U+0345, U+093C and U+3099, one pair per line. 5.8 KiB
009006 ucd/no/U+FA3C..U+FB4B Unicode Character Database 屮́␊屮̣␊屮ͅ␊屮़␊屮゙␊悔́␊悔̣␊悔ͅ␊悔़␊悔゙␊慨́␊慨̣␊慨ͅ␊慨़␊慨゙␊憎́␊憎̣␊憎ͅ␊憎़␊憎゙␊懲́␊懲̣␊懲ͅ␊懲़␊… Each character here never appears in NFC. It is followed by each of U+0301, U+0323, U+0345, U+093C and U+3099, one pair per line. 5.8 KiB
009007 ucd/no/U+FB4C..U+2F891 Unicode Character Database בֿ́␊בֿ̣␊בֿͅ␊ב़ֿ␊ב゙ֿ␊כֿ́␊כֿ̣␊כֿͅ␊כ़ֿ␊כ゙ֿ␊פֿ́␊פֿ̣␊פֿͅ␊פ़ֿ␊פ゙ֿ␊𝅗𝅥́␊𝅗𝅥̣␊𝅗𝅥ͅ␊𝅗़𝅥␊𝅗゙𝅥␊𝅘𝅥́␊𝅘𝅥̣␊𝅘𝅥ͅ␊𝅘़𝅥␊… Each character here never appears in NFC. It is followed by each of U+0301, U+0323, U+0345, U+093C and U+3099, one pair per line. 5.8 KiB
009008 ucd/no/U+2F892..U+2F933 Unicode Character Database 𢌱́␊𢌱̣␊𢌱ͅ␊𢌱़␊𢌱゙␊舁́␊舁̣␊舁ͅ␊舁़␊舁゙␊弢́␊弢̣␊弢ͅ␊弢़␊弢゙␊弢́␊弢̣␊弢ͅ␊弢़␊弢゙␊㣇́␊㣇̣␊㣇ͅ␊㣇़␊… Each character here never appears in NFC. It is followed by each of U+0301, U+0323, U+0345, U+093C and U+3099, one pair per line. 5.9 KiB
009009 ucd/no/U+2F934..U+2F9D5 Unicode Character Database 甤́␊甤̣␊甤ͅ␊甤़␊甤゙␊𤰶́␊𤰶̣␊𤰶ͅ␊𤰶़␊𤰶゙␊甾́␊甾̣␊甾ͅ␊甾़␊甾゙␊𤲒́␊𤲒̣␊𤲒ͅ␊𤲒़␊𤲒゙␊異́␊異̣␊異ͅ␊異़␊… Each character here never appears in NFC. It is followed by each of U+0301, U+0323, U+0345, U+093C and U+3099, one pair per line. 5.9 KiB
009010 ucd/no/U+2F9D6..U+2FA1D Unicode Character Database 贛́␊贛̣␊贛ͅ␊贛़␊贛゙␊起́␊起̣␊起ͅ␊起़␊起゙␊𧼯́␊𧼯̣␊𧼯ͅ␊𧼯़␊𧼯゙␊𠠄́␊𠠄̣␊𠠄ͅ␊𠠄़␊𠠄゙␊跋́␊跋̣␊跋ͅ␊跋़␊… Each character here never appears in NFC. It is followed by each of U+0301, U+0323, U+0345, U+093C and U+3099, one pair per line. 2.6 KiB
009011 ucd/jamo/U+1100..U+1120 Unicode Character Database 가␊ᄀᄀ␊가ᄀ␊각ᄀ␊ᄀᄀᆨ␊ᄀᄀ␊까␊ᄀᄁ␊가ᄁ␊각ᄁ␊ᄀᄁᆨ␊ᄁᄁ␊나␊ᄀᄂ␊가ᄂ␊각ᄂ␊ᄀᄂᆨ␊ᄂᄂ␊다␊ᄀᄃ… Each jamo in this range before a vowel, after a leading consonant, after an LV and an LVT syllable, between a leading and a trailing consonant, and doubled, one per line. 1.4 KiB
009012 ucd/jamo/U+1121..U+1141 Unicode Character Database ᄡᅡ␊ᄀᄡ␊가ᄡ␊각ᄡ␊ᄀᄡᆨ␊ᄡᄡ␊ᄢᅡ␊ᄀᄢ␊가ᄢ␊각ᄢ␊ᄀᄢᆨ␊ᄢᄢ␊ᄣᅡ␊ᄀᄣ␊가ᄣ␊각ᄣ␊ᄀᄣᆨ␊ᄣᄣ␊ᄤᅡ␊ᄀᄤ… Each jamo in this range before a vowel, after a leading consonant, after an LV and an LVT syllable, between a leading and a trailing consonant, and doubled, one per line. 1.4 KiB
009013 ucd/jamo/U+1142..U+1162 Unicode Character Database ᅂᅡ␊ᄀᅂ␊가ᅂ␊각ᅂ␊ᄀᅂᆨ␊ᅂᅂ␊ᅃᅡ␊ᄀᅃ␊가ᅃ␊각ᅃ␊ᄀᅃᆨ␊ᅃᅃ␊ᅄᅡ␊ᄀᅄ␊가ᅄ␊각ᅄ␊ᄀᅄᆨ␊ᅄᅄ␊ᅅᅡ␊ᄀᅅ… Each jamo in this range before a vowel, after a leading consonant, after an LV and an LVT syllable, between a leading and a trailing consonant, and doubled, one per line. 1.4 KiB
009014 ucd/jamo/U+1163..U+1183 Unicode Character Database ᅣᅡ␊갸␊가ᅣ␊각ᅣ␊갹␊ᅣᅣ␊ᅤᅡ␊걔␊가ᅤ␊각ᅤ␊걕␊ᅤᅤ␊ᅥᅡ␊거␊가ᅥ␊각ᅥ␊걱␊ᅥᅥ␊ᅦᅡ␊게␊가ᅦ␊각ᅦ␊… Each jamo in this range before a vowel, after a leading consonant, after an LV and an LVT syllable, between a leading and a trailing consonant, and doubled, one per line. 1.4 KiB
009015 ucd/jamo/U+1184..U+11A4 Unicode Character Database ᆄᅡ␊ᄀᆄ␊가ᆄ␊각ᆄ␊ᄀᆄᆨ␊ᆄᆄ␊ᆅᅡ␊ᄀᆅ␊가ᆅ␊각ᆅ␊ᄀᆅᆨ␊ᆅᆅ␊ᆆᅡ␊ᄀᆆ␊가ᆆ␊각ᆆ␊ᄀᆆᆨ␊ᆆᆆ␊ᆇᅡ␊ᄀᆇ␊가ᆇ␊각ᆇ␊… Each jamo in this range before a vowel, after a leading consonant, after an LV and an LVT syllable, between a leading and a trailing consonant, and doubled, one per line. 1.4 KiB
009016 ucd/jamo/U+11A5..U+11C5 Unicode Character Database ᆥᅡ␊ᄀᆥ␊가ᆥ␊각ᆥ␊ᄀᆥᆨ␊ᆥᆥ␊ᆦᅡ␊ᄀᆦ␊가ᆦ␊각ᆦ␊ᄀᆦᆨ␊ᆦᆦ␊ᆧᅡ␊ᄀᆧ␊가ᆧ␊각ᆧ␊ᄀᆧᆨ␊ᆧᆧ␊ᆨᅡ␊ᄀᆨ␊각␊각ᆨ… Each jamo in this range before a vowel, after a leading consonant, after an LV and an LVT syllable, between a leading and a trailing consonant, and doubled, one per line. 1.4 KiB
009017 ucd/jamo/U+11C6..U+11E6 Unicode Character Database ᇆᅡ␊ᄀᇆ␊가ᇆ␊각ᇆ␊ᄀᇆᆨ␊ᇆᇆ␊ᇇᅡ␊ᄀᇇ␊가ᇇ␊각ᇇ␊ᄀᇇᆨ␊ᇇᇇ␊ᇈᅡ␊ᄀᇈ␊가ᇈ␊각ᇈ␊ᄀᇈᆨ␊ᇈᇈ␊ᇉᅡ␊… Each jamo in this range before a vowel, after a leading consonant, after an LV and an LVT syllable, between a leading and a trailing consonant, and doubled, one per line. 1.4 KiB
009018 ucd/jamo/U+11E7..U+A967 Unicode Character Database ᇧᅡ␊ᄀᇧ␊가ᇧ␊각ᇧ␊ᄀᇧᆨ␊ᇧᇧ␊ᇨᅡ␊ᄀᇨ␊가ᇨ␊각ᇨ␊ᄀᇨᆨ␊ᇨᇨ␊ᇩᅡ␊ᄀᇩ␊가ᇩ␊각ᇩ␊ᄀᇩᆨ␊ᇩᇩ␊ᇪᅡ␊… Each jamo in this range before a vowel, after a leading consonant, after an LV and an LVT syllable, between a leading and a trailing consonant, and doubled, one per line. 1.4 KiB
009019 ucd/jamo/U+A968..U+D7B8 Unicode Character Database ꥨᅡ␊ᄀꥨ␊가ꥨ␊각ꥨ␊ᄀꥨᆨ␊ꥨꥨ␊ꥩᅡ␊ᄀꥩ␊가ꥩ␊각ꥩ␊ᄀꥩᆨ␊ꥩꥩ␊ꥪᅡ␊ᄀꥪ␊가ꥪ␊각ꥪ␊ᄀꥪᆨ␊ꥪꥪ␊ꥫᅡ␊ᄀꥫ… Each jamo in this range before a vowel, after a leading consonant, after an LV and an LVT syllable, between a leading and a trailing consonant, and doubled, one per line. 1.4 KiB
009020 ucd/jamo/U+D7B9..U+D7D9 Unicode Character Database ힹᅡ␊ᄀힹ␊가ힹ␊각ힹ␊ᄀힹᆨ␊ힹힹ␊ힺᅡ␊ᄀힺ␊가ힺ␊각ힺ␊ᄀힺᆨ␊ힺힺ␊ힻᅡ␊ᄀힻ␊가ힻ␊각ힻ␊ᄀힻᆨ␊ힻힻ␊ힼᅡ␊ᄀힼ␊가ힼ␊각ힼ␊… Each jamo in this range before a vowel, after a leading consonant, after an LV and an LVT syllable, between a leading and a trailing consonant, and doubled, one per line. 1.4 KiB
009021 ucd/jamo/U+D7DA..U+D7FA Unicode Character Database ퟚᅡ␊ᄀퟚ␊가ퟚ␊각ퟚ␊ᄀퟚᆨ␊ퟚퟚ␊ퟛᅡ␊ᄀퟛ␊가ퟛ␊각ퟛ␊ᄀퟛᆨ␊ퟛퟛ␊ퟜᅡ␊ᄀퟜ␊가ퟜ␊각ퟜ␊ᄀퟜᆨ␊ퟜퟜ␊ퟝᅡ␊… Each jamo in this range before a vowel, after a leading consonant, after an LV and an LVT syllable, between a leading and a trailing consonant, and doubled, one per line. 1.4 KiB
009022 ucd/jamo/U+D7FB..U+D7FF Unicode Character Database ퟻᅡ␊ᄀퟻ␊가ퟻ␊각ퟻ␊ᄀퟻᆨ␊ퟻퟻ␊퟼ᅡ␊ᄀ퟼␊가퟼␊각퟼␊ᄀ퟼ᆨ␊퟼퟼␊퟽ᅡ␊ᄀ퟽␊가퟽␊각퟽␊ᄀ퟽… Each jamo in this range before a vowel, after a leading consonant, after an LV and an LVT syllable, between a leading and a trailing consonant, and doubled, one per line. 224 B
009023 ucd/orders/U+01D5..U+1F8C Unicode Character Database Ǖ␊Ṻ␊ǖ␊ṻ␊Ǘ␊Ú̈␊ǘ␊ú̈␊Ǚ␊Ǔ̈␊ǚ␊ǔ̈␊Ǜ␊Ù̈␊ǜ␊ù̈␊Ǟ␊Ā̈␊ǟ␊ā̈␊Ǡ␊Ā̇␊ǡ␊ā̇␊… The decomposition of each character with two or more combining marks, with its marks in every order, one per line. 2.9 KiB
009024 ucd/orders/U+1F8D..U+1D1C0 Unicode Character Database ᾍ␊ᾍ␊Ά̔ͅ␊Ά̔ͅ␊ᾍ␊Ά̔ͅ␊ᾎ␊ᾎ␊ᾼ͂̓␊ᾼ͂̓␊ᾎ␊ᾼ͂̓␊ᾏ␊ᾏ␊ᾼ͂̔␊ᾼ͂̔␊ᾏ␊ᾼ͂̔␊ᾐ␊ᾐ␊ᾑ␊ᾑ␊ᾒ␊ᾒ␊… The decomposition of each character with two or more combining marks, with its marks in every order, one per line. 2.0 KiB
009025 regression/empty Focused regression The empty input is its own NFC form. 0 B
009026 regression/ascii Focused regression ␀␁␂␃␄␅␆␇␈␉␊␋␌␍␎␏␐␑␒␓␔␕␖␗␘␙␚␛␜␝␞␟ !"#$%&'()*+,-./… Every ASCII byte, NUL included. 128 B
009027 regression/nul in the middle Focused regression e␀́ NUL is a starter like any other: nothing composes across it. 4 B
009028 regression/byte order mark Focused regression ⟨U+FEFF⟩é⟨U+FEFF⟩ U+FEFF passes through wherever it is. 9 B
009029 regression/noncharacters Focused regression ⟨U+FFFE⟩⟨U+FFFF⟩⟨U+FDD0⟩⟨U+FDEF⟩⟨U+1FFFE⟩⟨U+10FFFF⟩ 20 B
009030 regression/latin-1 Focused regression ⟨U+0080⟩⟨U+0081⟩⟨U+0082⟩⟨U+0083⟩⟨U+0084⟩⟨U+0085⟩⟨U+0086⟩⟨U+0087⟩⟨U+0088⟩⟨U+0089⟩⟨U+008A⟩⟨U+008B⟩⟨U+008C⟩⟨U+008D⟩⟨U+008E⟩⟨U+008F⟩⟨U+0090⟩⟨U+0091⟩⟨U+0092⟩⟨U+0093⟩⟨U+0094⟩⟨U+0095⟩⟨U+0096⟩⟨U+0097⟩⟨U+0098⟩⟨U+0099⟩⟨U+009A⟩⟨U+009B⟩⟨U+009C⟩⟨U+009D⟩⟨U+009E⟩⟨U+009F⟩⟨U+00A0⟩¡¢£¤¥¦§¨©ª«¬⟨U+00AD⟩®¯… U+0080..U+00FF are all already NFC. 256 B
009031 regression/compatibility characters stay Focused regression fi ² ㎏ A ガ ㈱ ½ ℌ NFC applies canonical mappings only. These have compatibility decompositions, which are NFKC's business. 32 B
009032 regression/emoji sequences Focused regression 👩🏽⟨U+200D⟩💻 🏳️⟨U+200D⟩🌈 👨⟨U+200D⟩👩⟨U+200D⟩👧⟨U+200D⟩👦 🇳🇿 ❤️ #️⃣ ZWJ, variation selectors, skin tones and U+20E3 leave emoji alone. 80 B
009033 regression/singleton/angstrom sign Focused regression Å U+212B is a singleton: it maps to U+00C5 and never comes back. 3 B
009034 regression/singleton/ohm sign Focused regression Ω U+2126 maps to U+03A9. 3 B
009035 regression/singleton/kelvin sign Focused regression K U+212A maps to ASCII K, so a non-ASCII input can give an ASCII output. 3 B
009036 regression/singleton/greek question mark Focused regression ; U+037E maps to an ASCII semicolon. 2 B
009037 regression/singleton/combining grave tone mark Focused regression à U+0340 maps to U+0300, which then composes. 3 B
009038 regression/singleton/greek koronis Focused regression ἀ U+0343 maps to U+0313, which then composes. 4 B
009039 regression/singleton/greek oxia Focused regression ά U+1F71 (oxia) maps to U+03AC (tonos). 3 B
009040 regression/singleton/en quad Focused regression    U+2000 and U+2001 map to U+2002 and U+2003. 6 B
009041 regression/singleton/angle brackets Focused regression 〈x〉 U+2329 and U+232A map to the CJK brackets. 7 B
009042 regression/singleton/cjk compatibility ideographs Focused regression 豈﨎塚龎 U+F900 maps to U+8C48, but U+FA0E is one of the twelve unified ideographs in that block and stays. 12 B
009043 regression/singleton/supplementary compatibility ideograph Focused regression 丽𪘀 U+2F800 maps into the BMP (4 bytes to 3), U+2FA1D to another supplementary character. 8 B
009044 regression/singleton/angstrom then acute Focused regression Ǻ A singleton's replacement composes onwards. 5 B
009045 regression/singleton/ohm then mark Focused regression ᾭ U+2126 becomes omega, then takes three marks one at a time. 9 B
009046 regression/exclusion/devanagari qa Focused regression क़ U+0958 is excluded from composition: it decomposes and stays decomposed, growing from 3 bytes to 6. 3 B
009047 regression/exclusion/devanagari ka nukta Focused regression क़ The decomposition of an excluded composite doesn't recompose. 6 B
009048 regression/exclusion/every devanagari exclusion Focused regression क़ख़ग़ज़ड़ढ़फ़य़ 24 B
009049 regression/exclusion/hebrew presentation forms Focused regression יִשׁשּׁפֿ U+FB2C decomposes in two steps into three characters. 12 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.