Fork me on GitHub
  • API

    Show / Hide Table of Contents

    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
    object
    MatchRatingApproachEncoder
    Implements
    IStringEncoder
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    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

    true if the encodings are identical false otherwise.

    Implements

    IStringEncoder
    Back to top Copyright © 2024 The Apache Software Foundation, Licensed under the Apache License, Version 2.0
    Apache Lucene.Net, Lucene.Net, Apache, the Apache feather logo, and the Apache Lucene.Net project logo are trademarks of The Apache Software Foundation.
    All other marks mentioned may be trademarks or registered trademarks of their respective owners.