Jump to content
TNG Community
Paul Barrett

Soundex v Metaphone

Recommended Posts

Paul Barrett

Hi, hive mind,

As I understand it from a little Googling, Metaphone is an advancement over Soundex, correct?

If that's the case:

  1. what benefit is there in offering both in the search options?
  2. how can I suppress Soundex?
  3. is the Metaphone string customisable in the custom strings file because I'd like to rename it something like "fuzzy match" for my techno-phobic audience

Thanks.

 

Paul

Share this post


Link to post
Share on other sites
Rob Severijns

Paul,

Hope the linked article below answers your questions.

Using Fuzzy Matching to Search by Sound with Python | | InformIT

Basicly it's saying:

Soundex is faster than Metaphone but aloso less accurate in large databases. 

Soundex is English only and so is Metaphone but Double Metaphone is intended for other languages too.

Not sure but I think TNG uses Metaphone instead of Double Metaphone.

The article below shows you how one can tweak TNG to use Duoble Metaphone in TNG for more accurate search results.

International Metaphones - TNG_Wiki (lythgoes.net)

HTH,

Rob

 

Edit:

In TNG Soundex can be used for first names and last names.

Metaphone can only be used in last names.

 

Share this post


Link to post
Share on other sites
Paul Barrett

Thanks Rob

Your comments and the links confirm what I was thinking.  Good.

I am setting up a site for a family history society and I need things to be a simple as possible for our more technically unaware members.  So I want to offer only one option "Metaphone" and rename it to "Fuzzy match"

I presume the strings customisation page will let me do the rename, but how do I suppress Soundex?

Share this post


Link to post
Share on other sites
Rob Severijns

Paul,

In Searchform.php I found Soundex in an array. (line 249, 265 and 445)

You could try modifing that file by removing the Soundex.

Not sure if Soundex is anywhare else.

Rob

Share this post


Link to post
Share on other sites
Paul Barrett
7 hours ago, Rob Severijns said:

Paul,

In Searchform.php I found Soundex in an array. (line 249, 265 and 445)

You could try modifing that file by removing the Soundex.

Not sure if Soundex is anywhare else.

Rob

I'll give that a try.  Thanks Rob.

Paul

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×