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
- If there are any numerics in the string, return a blank code.
- Blank out all non-alphabetic characters.
- If string is all blanks, return a blank code.
- Capitalize all letters in the string.
-
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
-
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
- Set the first character of code with the first character of the string.
-
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
- 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.
-
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.