@alpaca-software/40kdc-data
    Preparing search index...

    Function normalizeName

    • Reduce a display name to a canonical lookup key.

      The transform, in order:

      1. Unicode NFD-decompose, then strip combining marks — KhârnKharn.
      2. Casefold to lower case.
      3. Remove apostrophe and quote variants (' ’ ‘ \ " “ ”) — T'auTau`.
      4. Collapse any run of whitespace or hyphens to a single space, then trim — Be'lakorbelakor, the betrayerthe betrayer.

      The result is intended only for comparison; it is not a display value.

      Parameters

      • input: string

      Returns string

      normalizeName("Khârn the Betrayer"); // "kharn the betrayer"
      normalizeName("T'au"); // "tau"