Soundex

Smud

Member
search is down for some reason .... anyway, does this soundex code look about right? Longtime since I used Soundex, think it was payroll surname lookup (cobol code).
 

Attachments

  • soundex.p
    3.9 KB · Views: 4

Smud

Member
Some algorithms treat the first character as non-repeatable eg LLOYD can be either "L300" or "L430" - I would think "L300" is more right. Who would think anything on the web is wrong?
 

joey.jeremiah

ProgressTalk Moderator
Staff member
you could have a look at the standard libraries project @oehive.org

<code>
{slib/slibstr.i}

message str_soundex( "LLOYD" ).
</code>

the output will be "L430"

hth
 

Smud

Member
you could have a look at the standard libraries project @oehive.org

<code>
{slib/slibstr.i}

message str_soundex( "LLOYD" ).
</code>

the output will be "L430"

hth

Thanks - will do - easy change - initialise nlast to -1 rather than "nLast = SoundexCode(INPUT cSoundex)."
 
Top