Jump to content

Double Metaphone character limit?


PinoyProgrammer

Recommended Posts

Has anyone tried usin Double Metaphone?

 

Here's the comparison for a sample string using metaphones:

 

String: Michael Ray de Guzman

Results:
Metaphone: MXLRTKSMN
Double Metaphone (Primary): MKLR
Double Metaphone (Secondary): MXLR
[Double] Metaphone (Spanish): MKRDGM

 

The first one uses the PHP function metaphone().

 

The second and third one uses double metaphone as it was written in a class by Stephen Woodbridge (see link below).

 

The last one is for the Spanish language. According to comment in the script, also uses Double Metaphone.

 

My question is if Double Metaphone was intended to limit itself to 4 characters only (similar to soundex)?

 

I've been looking for hours for an alternate version of DoubleMetaphone in PHP and the only version I really found is Stephen. I also couldn't find any forum posts in here or in any other message boards regarding the character limit, I assume that it's suppose to be limited to 4.

 

However, in Israel J. Sustaita's Spanish version, it does not have character limit even though it's already the second version of metaphone.

 

DoubleMetaphone class I use at http://swoodbridge.com/DoubleMetaPhone/

Spanish version at http://www.calvilloweb.com/spanish_metaphone.php

 

Or does anyone know of the PHP for metaphone 3?

 

Thanks all.

Link to comment
https://forums.phpfreaks.com/topic/225694-double-metaphone-character-limit/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.