Constructor Soundex
Soundex()
Creates an instance using Lucene.Net.Analysis.Phonetic.Language.Soundex.US_ENGLISH_MAPPING.
Declaration
public Soundex()
See Also
Soundex(Char[])
Creates a soundex instance using the given mapping. This constructor can be used to provide an internationalized mapping for a non-Western character set.
Every letter of the alphabet is "mapped" to a numerical value. This char array holds the values to which each letter is mapped. This implementation contains a default map for US_ENGLISH.
If the mapping contains an instance of SILENT_MARKER then H and W are not given special treatment.
Declaration
public Soundex(char[] mapping)
Parameters
Type | Name | Description |
---|---|---|
System.Char[] | mapping | Mapping array to use when finding the corresponding code for a given character. |
Soundex(String)
Creates a refined soundex instance using a custom mapping. This constructor can be used to customize the mapping, and/or possibly provide an internationalized mapping for a non-Western character set.
If the mapping contains an instance of SILENT_MARKER then H and W are not given special treatment.
since 1.4
Declaration
public Soundex(string mapping)
Parameters
Type | Name | Description |
---|---|---|
System.String | mapping | Mapping string to use when finding the corresponding code for a given character. |
Soundex(String, Boolean)
Creates a refined soundex instance using a custom mapping. This constructor can be used to customize the mapping, and/or possibly provide an internationalized mapping for a non-Western character set.
since 1.11
Declaration
public Soundex(string mapping, bool specialCaseHW)
Parameters
Type | Name | Description |
---|---|---|
System.String | mapping | Mapping string to use when finding the corresponding code for a given character. |
System.Boolean | specialCaseHW | if true, then |