eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'PhoneticStringUtilities::PhonemStringComparator':

Home

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

Class: PhonemStringComparator (private in PhoneticStringUtilities

This class is only visible from within PhoneticStringUtilities.

Inheritance:

   Object
   |
   +--PhoneticStringUtilities::PhoneticStringComparator
      |
      +--PhoneticStringUtilities::SingleResultPhoneticStringComparator
         |
         +--PhoneticStringUtilities::PhonemStringComparator

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

Description:


Implementation of the PHONEM algorithm, as described in
'Georg Wilde and Carsten Meyer, Doppelgaenger gesucht -
Ein Programm fuer kontextsensitive phonetische Textumwandlung
ct Magazin fuer Computer & Technik 25/1998'

This algorithm deals better with the german language (it cares for umlauts)


Instance protocol:

api
o  encode: aString
single character substitutions via tr

Usage example(s):

     self basicNew encode:'müller'  -> 'MYLR'    
     self basicNew encode:'mueller' -> 'MYLR'    
     self basicNew encode:'möller'  -> 'MYLR'
     self basicNew encode:'miller'  -> 'MYLR'     
     self basicNew encode:'muller'  -> 'MULR' 
     self basicNew encode:'muler'   -> 'MULR' 

     self basicNew phoneticStringsFor:'müller'  #('MYLR')    
     self basicNew phoneticStringsFor:'mueller' #('MYLR')    
     self basicNew phoneticStringsFor:'möller'  #('MYLR')
     self basicNew phoneticStringsFor:'miller'  #('MYLR')     
     self basicNew phoneticStringsFor:'muller'  #('MULR') 
     self basicNew phoneticStringsFor:'muler'   #('MULR') 
     
     self basicNew phoneticStringsFor:'schmidt'     #('CMYD')
     self basicNew phoneticStringsFor:'schneider'   #('CNAYDR')
     self basicNew phoneticStringsFor:'fischer'     #('VYCR')
     self basicNew phoneticStringsFor:'weber'       #('VBR')
     self basicNew phoneticStringsFor:'weeber'      #('VBR')
     self basicNew phoneticStringsFor:'webber'      #('VBR')
     self basicNew phoneticStringsFor:'wepper'      #('VBR')
     
     self basicNew phoneticStringsFor:'meyer'       #('MAYR')
     self basicNew phoneticStringsFor:'maier'       #('MAYR')
     self basicNew phoneticStringsFor:'mayer'       #('MAYR')
     self basicNew phoneticStringsFor:'mayr'        #('MAYR')
     self basicNew phoneticStringsFor:'meir'        #('MAYR')
     
     self basicNew phoneticStringsFor:'wagner'      #('VACNR')
     self basicNew phoneticStringsFor:'schulz'      #('CULC')
     self basicNew phoneticStringsFor:'becker'      #('BCR')
     self basicNew phoneticStringsFor:'hoffmann'    #('OVMAN')
     self basicNew phoneticStringsFor:'haus'        #('AUS')
     
     self basicNew phoneticStringsFor:'schäfer'     #('CVR')
     self basicNew phoneticStringsFor:'scheffer'    #('CVR')
     self basicNew phoneticStringsFor:'schaeffer'   #('CVR')
     self basicNew phoneticStringsFor:'schaefer'    #('CVR')



ST/X 7.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Wed, 04 Dec 2024 08:39:13 GMT