Class MatchRatingApproachEncoder
Match Rating Approach Phonetic Algorithm Developed by Western Airlines
in 1977.
Implements
Inherited Members
Namespace: Lucene.Net.Analysis.Phonetic.Language
Assembly: Lucene.Net.Analysis.Phonetic.dll
Syntax
public class MatchRatingApproachEncoder : IStringEncoder
Methods
Encode(string)
Encodes a string using the Match Rating Approach (MRA) algorithm.
Declaration
public string Encode(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | String to encode. |
Returns
Type | Description |
---|---|
string | The MRA code corresponding to the string supplied. |
IsEncodeEquals(string, string)
Determines if two names are homophonous via Match Rating Approach (MRA) algorithm. It should be noted that the strings are cleaned in the same way as Encode(string).
Declaration
public virtual bool IsEncodeEquals(string name1, string name2)
Parameters
Type | Name | Description |
---|---|---|
string | name1 | First of the 2 strings (names) to compare. |
string | name2 | Second of the 2 names to compare. |
Returns
Type | Description |
---|---|
bool |
|