Questions tagged [metaphone]

Metaphone is a phonetic algorithm published in 1990 for indexing words by their English pronunciation.

Metaphone fundamentally improves on the Soundex algorithm by using information about variations and inconsistencies in English spelling and pronunciation to produce a more accurate encoding, which does a better job of matching words and names which sound similar. As with Soundex, similar sounding words should share the same keys. Metaphone is available as a built-in operator in a number of systems, including later versions of PHP.

48 questions
2
votes
3 answers

How to search for a part of a string in an array?

I want to search whether the complete string or a part of the string is a part of the array. How can this be achieved in PHP? Also, how can I use metaphone in it as well? Example: array1={'India','USA','China'}; array2={'India is in east','United…
Viral Jain
  • 1,004
  • 1
  • 14
  • 30
2
votes
2 answers

How to implement metaphone in Microsoft access?

I want to use metaphone algorithm for pattern matching in Microsoft Access. I found one code on http://www.snakelegs.org/2008/01/18/double-metaphone-visual-basic-implementation/ but it doesn't works, instead, Microsoft Access 2007 hangs up. I have…
Viral Jain
  • 1,004
  • 1
  • 14
  • 30
2
votes
1 answer

Test Suite for Double Metaphone?

I've translated Double-Metaphone into ActionScript3 and I want to test it (obviously) before I release the source to ... um ... the open. I'm looking for a long list of names with the primary and secondary codes. Google does not find anything except…
Richard Haven
  • 1,122
  • 16
  • 31
2
votes
1 answer

Teradata SQL to Extract Records Based on Approximate String Matching

We are on version TD 14 and I come from Netezza / Postgre(Redshift) background. I have been asked to extract a login data from audit logs to find out records/transactions where the same ip is submitting similar looking usernames with small changes.…
Samir Parmar
  • 21
  • 1
  • 3
2
votes
0 answers

PHP 7 metaphone function performance

While researching PHP 7 and it's changes and performance, i came across a function which is faster in PHP 5 than in PHP 7: metaphone(). Every other function i tested was considerably faster in PHP 7. I can't find any information regarding this and…
RobinvdA
  • 1,313
  • 2
  • 13
  • 28
2
votes
1 answer

Sphinx with metaphone and wildcard search

we are an anatomy platform and use sphinx for our search. We want to make our search more fuzzier and started to use metaphone to correct spelling mistakes. It finds for example phalanges even though the search word is falanges. That's good but we…
JoKer
  • 1,074
  • 1
  • 8
  • 11
2
votes
3 answers

metaphone 3 implementation with java

Does anyone know where the code (not commercial stuff) can be found for Metaphone 3 matching for java? Even though apache has implemented Metaphone 1.2 (please see this site: Apache Metaphone 1.2 Implementation). But it didn't implement Metaphone 3.…
Chailie
  • 451
  • 2
  • 11
  • 24
1
vote
1 answer

How to make a fulltext search

I want to make a fulltext search with metaphone. Everythings works fine. I have 4 fields ie. ID |Category | Type |Title |Meta 1 |Vehicle |4 Wheelers |Farrari Car for Sale |FHKL WLRS FRR KR FR…
1
vote
2 answers

Difference between Metaphone 3 and Double Metaphone

I have been reading many articles on Metaphone 3 last couple of days. I saw Metaphone 3 also returns 2 key for each word just like Double Metaphone. Actually, I am confused to figure out what is the core difference between Double Metaphone and…
1
vote
0 answers

Double Metaphone algorithms for Full Names

I have list of full names names and trying to compare/search matching phonetically similar full names; I am using Double metaphone in my c# say my list is like this; Abdul Hameed Khan Shadab Akbar Nawab Zameer Ahmed Baloch Richard Hyden Abdullah…
Abdul
  • 1,416
  • 9
  • 26
  • 57
1
vote
1 answer

Soundex or Metaphone algorithm for typos in search term

In our search we need to return results which match searched term with Levensthein distance max of 2. The problem is that we need to apply Levensthein distance algorithm for every row in table which has millions of rows and then query is very…
michal.jakubeczy
  • 8,221
  • 1
  • 59
  • 63
1
vote
1 answer

How to compage 2 metaphone results

I'm wondering if there is an efficient way to compare 2 metaphone results in php. metaphone 1 = OSKRSWRNNTFYFFTFRHNNSSBSTPKTR metaphone 2 = FYNTTNWSWRNBTRPRTTLRKTFRHKTTRT0BSTPKTRWNRT0SKR What would a good start or approach ?
user2986055
1
vote
1 answer

How do you increase the max code length of an elasticsearch metaphone phonetic filter?

I'm using the phonetic plugin filter for elasticsearch. https://github.com/elastic/elasticsearch-analysis-phonetic When I create the index I am creating a custom filter with the following settings. soundex: { type: "phonetic", …
toddles2000
  • 1,032
  • 1
  • 8
  • 16
1
vote
1 answer

Unexpected results from Metaphone algorithm

I am using phonetic matching for different words in Java. i used Soundex but its too crude. i switched to Metaphone and realized it was better. However, when i rigorously tested it. i found weird behaviour. i was to ask whether thats the way…
jaykio77
  • 379
  • 1
  • 7
  • 22
1
vote
1 answer

Accuracy of metaphone for word search in dictionary database in php

I am going to implement did you mean feature for my application in php. Words from database is taken as dictionary. I think similar words can be find out more accurately using metaphone other than that of levenshtein, similer_text, soundex etc. Can…
Jiji-k
  • 21
  • 2