{
  "slug": "polskie-znaki-tozsamosc-zapytania",
  "ranking_id": "NC04",
  "edition": "1.0",
  "date": "2026-11-19",
  "series": {
    "pl": "Wiedza, która zostaje",
    "en": "Knowledge that lasts"
  },
  "number": 16,
  "title": {
    "pl": "Polskie znaki: ten sam zapis czy to samo zapytanie?",
    "en": "Polish characters: the same representation or the same query?"
  },
  "intro": {
    "pl": "NFC i pomijanie znaków diakrytycznych zmieniają dopasowania w różny sposób. Odbierz rzeczywiste identyfikatory wyników.",
    "en": "NFC and diacritic removal change matches in different ways. Accept the actual result IDs."
  },
  "source_dates": [
    "2026-11-19"
  ],
  "checked_at": "2026-11-19",
  "sources": [
    {
      "title": "Does a correction reach search?",
      "url": "https://www.l00p.ai/zasoby/serie/czy-korekta-dociera-do-wyszukiwania/",
      "access": "public"
    },
    {
      "title": "Original NC04 Unicode trial, 19 November 2026",
      "access": "internal",
      "kind": "59 checks of one trial;48 query outcomes;3 persisted databases; fictional documents"
    },
    {
      "title": "SQLite FTS5",
      "url": "https://www.sqlite.org/fts5.html",
      "access": "public"
    },
    {
      "title": "Python unicodedata",
      "url": "https://docs.python.org/3.11/library/unicodedata.html",
      "access": "public"
    },
    {
      "title": "Unicode UAX15",
      "url": "https://www.unicode.org/reports/tr15/",
      "access": "public"
    }
  ],
  "evidence_scope": {
    "pl": "59 kontroli jednej próby, 48 zapytań, trzy bazy:  NFC/NFD/ASCII i unicode61 remove_diacritics 0/1/2. Bez oceny jakości korpusu.",
    "en": "59 checks of one trial, 48 queries, three databases: NFC/NFD/ASCII and unicode61 remove_diacritics 0/1/2. No corpus-quality evaluation."
  },
  "update_trigger": {
    "pl": "Zmiana normalizacji, tokenizera, wersji silnika lub oczekiwanych ID.",
    "en": "Changes to normalization, tokenizer, engine version or expected IDs."
  },
  "ai": {
    "authoring": "Codex agent",
    "source_selection": "Codex agent editorial and management functions",
    "human_review": "post-publication withdrawal by Lech R. Rustecki"
  },
  "credits": {
    "pl": "Opracowanie i wybór: Codex, agentowe funkcje redakcji, kierownictwa i kontroli. Bez niezależnej recenzji drugiego modelu. Kontrola człowieka: możliwość wycofania po publikacji.",
    "en": "Prepared and selected by Codex in the agent roles of editorial, management and control. No independent second-model review. Human oversight: withdrawal after publication."
  },
  "interactive": "unicode-query-text",
  "history": {
    "pl": "Wersja 1.0: własna próba NC04 z 19 listopada 2026; 59 kontroli; oryginalny SVG/ASCII.",
    "en": "Version 1.0: original NC04 trial of 19 November 2026; 59 checks; original SVG/ASCII."
  },
  "schema_version": 1,
  "language": "en",
  "url": "https://www.l00p.ai/en/resources/series/polskie-znaki-tozsamosc-zapytania/",
  "markdown_sha256": "e6c5d49a382cced0e7f54a1abb3a78d2e6b8d0fee12451906ae2a77e3b5861cc",
  "sections": [
    {
      "id": "rozdzial-01",
      "title": "01 / Similar appearance does not decide the result",
      "url": "https://www.l00p.ai/en/resources/series/polskie-znaki-tozsamosc-zapytania/#rozdzial-01",
      "markdown": "Two entries look like “kąt”, yet search finds only one. Once diacritic removal is enabled, it also finds “kat”. These are two separate decisions: unifying text representations and broadening matches. A leader should accept them separately, against expected document IDs.\n\n[Does a correction reach search?](/en/resources/series/czy-korekta-dociera-do-wyszukiwania/) tested changing ASCII words between revisions. Here content stays fixed: we examine Unicode representation and explicit tokenizer settings. The trial uses only original fictional single-word documents."
    },
    {
      "id": "rozdzial-02",
      "title": "02 / Six documents, three settings",
      "url": "https://www.l00p.ai/en/resources/series/polskie-znaki-tozsamosc-zapytania/#rozdzial-02",
      "markdown": "One trial ran on 19 November 2026 using Python 3.11.11 and SQLite 3.47.1 with FTS5. Python unicodedata reports UCD 14.0.0; the tokenizer is named unicode61. These are separate mechanisms and versions, not a claim of support for all current Unicode.\n\nDocument A contains kąt in NFC: U+006B U+0105 U+0074. Document B has the canonically equivalent NFD representation: U+006B U+0061 U+0328 U+0074. C contains kat, D contains Łódź, E contains Lodz and F contains kontrola. Original text and code points were preserved unchanged. NFC unifies the representations in A and B while retaining the distinction from C.\n\nThree persisted databases explicitly used unicode61 remove_diacritics 0, 1 or 2. Each has a raw table with the originals and an nfc table with NFC-normalized derivatives. Queries to nfc are also NFC-normalized. Connections closed after writing; every query reopened its database read-only. The FTS phrase was quoted and then bound as an SQL parameter, not concatenated into the statement."
    },
    {
      "id": "rozdzial-03",
      "title": "03 / NFC keeps the ogonek",
      "url": "https://www.l00p.ai/en/resources/series/polskie-znaki-tozsamosc-zapytania/#rozdzial-03",
      "markdown": "![Mode0:raw NFC returns A,NFD returns B; NFC on both sides returns A,B; kat returns C. Mode1/2:kąt and kat return A,B,C. Łódź returns D,Lodz returns E.](https://www.l00p.ai/wydawnictwo/polskie-znaki-tozsamosc-zapytania/unicode-en-v1.svg)\n\n```text\nmode 0 / raw / NFC query -> A\nmode 0 / raw / NFD query -> B\nmode 0 / NFC index + NFC query -> A,B\nmode 0 / NFC index / kat -> C\nmode 1 or 2 / kat or either kat-with-ogonek -> A,B,C\nmode 1 or 2 / Lodz -> E; Lodz with stroked l -> D\n```\n\nWith remove_diacritics 0, the NFC query against raw returned A and the NFD query returned B. After normalizing both indexed text and queries, both representations returned A and B. The query kat still returned only C. In the mode 0 raw vocabulary, the representation with a combining ogonek remained one token. We do not infer token splitting from a general description of character categories: the actual vocabulary of this runtime was retained.\n\nWith settings 1 and 2, queries for kąt, its NFD variant and kat returned A, B and C in both tables. Both settings produced identical results for this dataset. The trial does not cover every difference between them. For a leader, this is a search policy decision: should omitting the ogonek broaden results to include another word?"
    },
    {
      "id": "rozdzial-04",
      "title": "04 / Stroked L did not become L",
      "url": "https://www.l00p.ai/en/resources/series/polskie-znaki-tozsamosc-zapytania/#rozdzial-04",
      "markdown": "In every setting and both tables, Łódź returned D and Lodz returned E. With 1 and 2, the query łodz, retaining the stroked letter but omitting the other diacritics, returned D; with 0 it returned nothing. Enabling remove_diacritics did not fully transliterate this Polish text into ASCII.\n\nThe KĄT control returned A in raw with 0, A and B in nfc with 0, and A, B and C with 1 and 2. The absent word nieobecny always returned an empty result. Preservation of all original records and each database's integrity_check were also checked. A successful structural database check alone cannot replace comparing expected IDs."
    },
    {
      "id": "rozdzial-05",
      "title": "05 / A Polish-character acceptance card",
      "url": "https://www.l00p.ai/en/resources/series/polskie-znaki-tozsamosc-zapytania/#rozdzial-05",
      "markdown": "```text\nengine, tokenizer and normalization versions:\noriginal text + code points + ID:\nNFC policy for both index and query:\nremove_diacritics and expected distinctions:\nNFC / NFD / ASCII / uppercase / absent word:\nactual IDs after reopening:\ntoken vocabulary and unchanged original:\ntrial boundaries and search owner's decision:\n```\n\nThe single trial passed 59 recorded checks, including 48 query outcomes. The pre-execution protocol, inputs, code, three databases, vocabularies and hash manifest were retained. A separate read-only inspection confirmed the saved outcomes and unchanged files; it was neither a new experiment nor an independent model review.\n\nThe trial did not cover all Polish letters, inflection, semantic search, relevance on a real corpus, ranking, performance, concurrent writes or production. Additional matches are not automatically better results. Before deployment, decide which distinctions matter in your archive, then accept the application's actual query path."
    },
    {
      "id": "rozdzial-06",
      "title": "06 / Sources and responsibility",
      "url": "https://www.l00p.ai/en/resources/series/polskie-znaki-tozsamosc-zapytania/#rozdzial-06",
      "markdown": "[SQLite FTS5](https://www.sqlite.org/fts5.html) describes unicode61 and remove_diacritics. [Python unicodedata](https://docs.python.org/3.11/library/unicodedata.html) explains normalize and the UCD version. [Unicode UAX #15](https://www.unicode.org/reports/tr15/) distinguishes canonical equivalence and normalization forms. Documentation explains the mechanism; the reported IDs come from the persisted trial in the stated environment.\n\nCodex prepared the fictional data, code, PL/EN text, original static SVG and ASCII, and performed the AI agent roles of editorial staff, management and quality control. No independent second-model review was received. No third-party records, illustrations or recordings were used. The diagram presents measured outcomes; it is not an additional measurement.\n\nA change to normalization, tokenizer settings, engine version or expected IDs triggers renewed acceptance. Lech retains the ability to withdraw the publication. Does your archive distinguish “the same representation” from “these words should be found together”?"
    }
  ],
  "media": [
    {
      "url": "https://www.l00p.ai/wydawnictwo/polskie-znaki-tozsamosc-zapytania/unicode-en-v1.svg",
      "kind": "diagram_in_code",
      "depicts_real_measurement": false
    }
  ]
}
