|
Class: PhonemStringComparator (private in PhoneticStringUtilities
This class is only visible from within
PhoneticStringUtilities.
Object
|
+--PhoneticStringUtilities::PhoneticStringComparator
|
+--PhoneticStringUtilities::SingleResultPhoneticStringComparator
|
+--PhoneticStringUtilities::PhonemStringComparator
- Package:
- stx:libbasic2
- Category:
- Collections-Text-Support
- Owner:
- PhoneticStringUtilities
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)
api
-
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')
|
|