NYSIIS Routine - trillium_discovery - trillium_quality - 17.1

Inline Quality and Discovery

Version
17.1
Language
English
Product name
Trillium Quality and Discovery
Title
Inline Quality and Discovery

The NYSIIS routine matches two (2) strings of data, using an algorithm based on a standard NYSIIS algorithm. The maximum field comparison length is 256 characters.

IMPROVED NYSIIS ALGORITHM

  1. If there are any numerics in the string, return a blank code.
  2. Blank out all non-alphabetic characters.
  3. If string is all blanks, return a blank code.
  4. Capitalize all letters in the string.
  5. Translate the following first character(s) of the string:
    From characters To characters

    MAC

    MCC

    KN

    NN

    K

    C

    PH and PF

    FF

    WR and RH

    RR

    DG

    GG

  6. Translate the following last character(s) of the string:
    From characters To characters

    S or Z

    Blank

    EE or IE or YE

    Y

    DT or RT or RD

    D

    NP or ND

    N

    IX

    IC

    EX

    EC

    JR or SR

    Blank

  7. Set the first character of code with the first character of the string.
  8. Translate the following character(s) that occur after the first character of the string:
    From characters To characters

    EV

    AF

    E, I, O, U

    A

    Y

    A (when A is not the last character)

    Q

    G

    Z

    S

    M or KN

    N

    K

    C

    PH

    FF

    H

    Replace with preceding character, when preceded or followed by vowel.

    W

    Replace with preceding character when preceded by a vowel.

    SCH

    SSA, when SCH is at the end of the string - OR - SSS, when SCH is NOT at the end of the string.

    SH

    SA when SH is at end of string.

    GHT

    TTT

    DG

    GG

    WR

    RR

  9. Add a letter to a code if not the same as the preceding letter of code; do this until a 10-character code is created or until the string has no more characters.
  10. Change the last letter(s) of the code:
    From characters To characters

    S

    Blank

    AY

    Y

    A

    Blank

    Table 1. Scoring for NYSIIS

    Score

    Description

    100

    Strings are equal (excludes blank versus blank).

    80

    Blank code versus blank code.

    75

    Blank code versus non-blank code.

    0

    Code is not equal.