Skip to content

MatchRatingApproach matches when it shouldn't #13

@David-Maisonave

Description

@David-Maisonave

I'm using the latest source code from Phonix as of 5-Aug-2025.

I tested MatchRatingApproach with word "been" against the following words:
being
bin
bean
flat
xxxx

All 5 return true.
"flat" and "xxxx" should have return false.

I perform the same test with Metaphone, DoubleMetaphone, and CaverPhone. They correctly return false for "flat" and "xxxx".

Here's my source code.

        public static bool MatchRatingApproach(this string source1, string source2)
        {
            string[] sources = { source1,  source2 };
            return matchRatingApproach.IsSimilar(sources);
        }

FYI:
Metaphone, DoubleMetaphone, and CaverPhone all fail when comparing "being", in that they return false.
However, I'm not surprise, because all of the other phonetic functions I've tested have also failed with that word, except for Microsoft EnPhonetic function.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions