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
    System.Object
    MatchRatingApproachEncoder
    Implements
    IStringEncoder
    Namespace: Lucene.Net.Analysis.Phonetic.Language
    Assembly: Lucene.Net.Analysis.Phonetic.dll
    Syntax
    public class MatchRatingApproachEncoder : object, IStringEncoder

    Methods

    | Improve this Doc View Source

    Encode(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.

    | Improve this Doc View Source

    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

    true if the encodings are identical false otherwise.

    Implements

    IStringEncoder
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)