|
Soundex is easy to implement in RPG. Here's some information on its algorithm: http://www.bluepoof.com/Soundex/info.html and http://www.bluepoof.com/Soundex/info2.html Basically, you cycle each letter. Always keep the first letter, then look up a number for each consecutive letter, eliminating repeating values. Vowels and w/h/y are ignored. The resulting value is four positions long. Pad up to four positions with zeroes, or truncate to four positions if you created a long soundex. HTH, Loyd On Mon, 04 Nov 2002 17:21:07 -0500, John Myers - MM <jmyersmm@sbsusa.com> wrote: >Does anyone have a "Soundex" routine in RPG laying around that they could >send me? I didn't find one in the archives. -- "Why, you can even hear yourself think." --Hobbes "This is making me nervous. Let's go in." --Calvin loyd@blackrobes.net ICQ#504581 http://www.blackrobes.net/
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.