eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'PhoneticStringUtilities::DaitchMokotoffStringComparator':

Home

Documentation
www.exept.de
Everywhere
for:
[back]

Class: DaitchMokotoffStringComparator (private in PhoneticStringUtilities

This class is only visible from within PhoneticStringUtilities.

Inheritance:

   Object
   |
   +--PhoneticStringUtilities::PhoneticStringComparator
      |
      +--PhoneticStringUtilities::DaitchMokotoffStringComparator

Package:
stx:libbasic2
Category:
Collections-Text-Support
Owner:
PhoneticStringUtilities

Description:


self encode:'AUERBACH' -> 097400, 097500

Encodes a string into a Daitch-Mokotoff Soundex value.
The Daitch-Mokotoff Soundex algorithm is a refinement of the Russel and American Soundex algorithms, 
yielding greater accuracy in matching especially Slavish and Yiddish surnames with similar pronunciation 
but differences in spelling.

The main differences compared to the other soundex variants are:
    - coded names are 6 digits long
    - the initial character of the name is coded
    - rules to encoded multi-character n-grams
    - multiple possible encodings for the same name (branching)

This implementation supports branching, depending on the used method:
    encode:aString            - branching disabled, only the first code will be returned
    phoneticStringsFor:String - branching enabled, all codes will be returned, separated by '|'


    'Avotaynu - Soundexing and Genealogy'    
        http://www.avotaynu.com/soundex.htm


Related information:

    'Wikipedia
    -
    Daitch-Mokotoff
    Soundex'
    http://en.wikipedia.org/wiki/Daitch%E2%80%93Mokotoff_Soundex


ST/X 7.2.0.0; WebServer 1.670 at bd0aa1f87cdd.unknown:8081; Fri, 07 Oct 2022 18:30:08 GMT