Class MatchRatingApproachEncoder
Match Rating Approach Phonetic Algorithm Developed by Western Airlines
in 1977.
This class is immutable and thread-safe.
See: Wikipedia - Match Rating Approach
since 1.8
Inheritance
System.Object
MatchRatingApproachEncoder
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Lucene.Net.Analysis.Phonetic.Language
Assembly: Lucene.Net.Analysis.Phonetic.dll
Syntax
public class MatchRatingApproachEncoder : IStringEncoder
Methods
| Improve this Doc View SourceEncode(String)
Encodes a string using the Match Rating Approach (MRA) algorithm.
Declaration
public string Encode(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | String to encode. |
Returns
Type | Description |
---|---|
System.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 |
---|---|---|
System.String | name1 | First of the 2 strings (names) to compare. |
System.String | name2 | Second of the 2 names to compare. |
Returns
Type | Description |
---|---|
System.Boolean |
|