Class Metaphone
Generator function for Soundex strings, according to SuperOffice usage. This is based on Double Metaphone (c) 1998, 1999 by Lawrence Philips, further modified by SuperOffice.
The Soundex string generated here is used for duplicate searching - an exact match of Soundex implies a suspect duplicate of the originals.
Namespace: SuperOffice.CRM.Globalization
Assembly: SoCore.dll
Syntax
public sealed class Metaphone : Object
Methods
GetMetaphone(String)
Generate the SoSoundex string for the given argument, with the default length
Declaration
public static string GetMetaphone(string inputString)
Parameters
Type | Name | Description |
---|---|---|
String | inputString | Input string, typically a company name, project name or something like that |
Returns
Type | Description |
---|---|
String | Resulting variant, with 9 significant characters (the default used in the database) |
GetMetaphone(String, Int32)
Generate the SoSoundex string for the given argument, with an explicit length
Declaration
public static string GetMetaphone(string inputString, int length)
Parameters
Type | Name | Description |
---|---|---|
String | inputString | Input string, typically a company name, project name or something like that |
Int32 | length | Desired length of compressed metaphone string (the result) |
Returns
Type | Description |
---|---|
String | Resulting metaphone string |