NYSIIS: Difference between revisions

Content deleted Content added
New York State Identification and Intelligence System (NYSIIS) Phonetic Encoder
 
tidy up task description, tidy up current implementation (conventionally, example goes after implementation)
Line 1: Line 1:
{{task|text processing}}
{{task|text processing}}
{{wikipedia}}
The New York State Identification and Intelligence System Phonetic Code, commonly known as NYSIIS, is a phonetic algorithm for creating indices for words based on their pronunciation. The goal is for homophones to be encoded to the same representation so that they can be matched despite minor differences in spelling (from [[wp:NYSIIS|the WP article]]).
The [[wp:New York State Identification and Intelligence System|New York State Identification and Intelligence System phonetic code]], commonly known as NYSIIS, is a phonetic algorithm for creating indices for words based on their pronunciation. The goal is for homophones to be encoded to the same representation so that they can be matched despite minor differences in spelling.
;See also
* [[Soundex]]


=={{header|Caché ObjectScript}}==
=={{header|Caché ObjectScript}}==
<lang cache>Class Utils.Phonetic [ Abstract ]

<p>Examples:
<pre>
USER>Do ##class(Utils.Phonetic).Encode("nysiis", "Mclaughlin", .code)
USER>Write code
MCLAGLAN
</pre>
</p>

<p>Code:
<lang Caché_ObjectScript>
Class Utils.Phonetic [ Abstract ]
{
{


Line 195: Line 187:
}
}


}</lang>
}
{{out|Examples}}
</lang>
</p>
<pre>
USER>Do ##class(Utils.Phonetic).Encode("nysiis", "Mclaughlin", .code)
USER>Write code
MCLAGLAN
</pre>