Talk:NYSIIS

Revision as of 06:49, 24 March 2013 by rosettacode>Paddy3118 (How about this change to the description.)

What must one do to accomplish the task? It doesn't say. --Paddy3118 13:06, 23 March 2013 (UTC)

It is still ambiguous. Really the task was promoted out of draft too soon. Typical nysiis usage assumes removal of common suffixes before encoding, and the reference implementation ( Caché ObjectScript ) did that, so I did as well in Perl 6. It probably should be put into the task description though (and soon, before too many implementations are added). Also, typically, the algorithm is used to encode both first and last names in one go. None of the implementations as of now will handle that. IE "John Smith" -> nysiis -> "JAN SNAT".
There are a few ambiguities in the algorithm description too IMO. Should you consider the first letter when encoding H? Should Wheeler encode as WALAR or WHALAR? I believe that it should consider the first character (WALAR - W is a non-vowel so remove the H) but it is open to interpretation.
Also, When removing terminal S or A. If the last characters are AS and you remove the S, do you then need to remove the newly terminal A or should you only remove the last character once? Should Louis encode as L or LA? Again, it is open to interpretation. --Thundergnat 21:03, 23 March 2013 (UTC)
Well I changed it back to draft status as I thought it needed just this kind of discussion to improve the task description.
How about changing the task description to explicitly state that just the wikipedia algorithm need be implemented but leaving it open for implementors to add extra functionality as long as they state that they are doing that (and maybe what extra functionality is being added).? --Paddy3118 06:49, 24 March 2013 (UTC)
Return to "NYSIIS" page.