Metaphone

Metaphone

Metaphone es un algoritmo fonético, un algoritmo para indexar palabras por su sonido al ser pronunciadas en inglés.

Metaphone fue desarrollado por Lawrence Philips como respuesta a las deficiencias del algoritmo Soundex. Es más exacto que Soundex porque "entiende" las reglas básicas de pronunciación en inglés.

Está disponible como operador integrado en algunos sistemas, incluyendo las últimas versiones de PHP.

El autor más tarde desarrolló una nueva versión del algoritmo, al que llamó "Double Metaphone", que produce resultados más exactos que el original.

El algoritmo produce claves como salida. Palabras que suenen parecido comparten la misma clave y son de longitud variable.

Algoritmo

Desde una libreria de texto en Ruby:

      [ /([bcdfhjklmnpqrstvwxyz])\1+/,
                         '\1' ],# Remueve doubles consonantes excepto g.
                                # [PHP] remueve c desde regexp.
      [ /^ae/,            'E' ],
      [ /^[gkp]n/,        'N' ],
      [ /^wr/,            'R' ],
      [ /^x/,             'S' ],
      [ /^wh/,            'W' ],
      [ /mb$/,            'M' ],# [PHP] remueve $ desde regexp.
      [ /(?!^)sch/,      'SK' ],
      [ /th/,             '0' ],
      [ /t?ch|sh/,        'X' ],
      [ /c(?=ia)/,        'X' ],
      [ /[st](?=i[ao])/,  'X' ],
      [ /s?c(?=[iey])/,   'S' ],
      [ /[cq]/,           'K' ],
      [ /dg(?=[iey])/,    'J' ],
      [ /d/,              'T' ],
      [ /g(?=h[^aeiou])/, ''  ],
      [ /gn(ed)?/,        'N' ],
      [ /([^g]|^)g(?=[iey])/,
                        '\1J' ],
      [ /g+/,             'K' ],
      [ /ph/,             'F' ],
      [ /([aeiou])h(?=\b|[^aeiou])/,
                         '\1' ],
      [ /[wy](?![aeiou])/, '' ],
      [ /z/,              'S' ],
      [ /v/,              'F' ],
      [ /(?!^)[aeiou]+/,  ''  ],

Enlaces externos

Herramientas


Wikimedia foundation. 2010.

Игры ⚽ Поможем написать реферат

Mira otros diccionarios:

  • Metaphone — Metaphone  это фонетический алгоритм для индексирования слов по их звучанию с учётом основных правил английского произношения. На выходе алгоритм даёт ключи переменной длины, в отличие от алгоритма Soundex, который генерирует ключи с… …   Википедия

  • Metaphone — ist ein phonetischer Algorithmus zur Indizierung von Wörtern und Phrasen nach ihrem Klang in der englischen Sprache. Metaphone wurde von Lawrence Philips als Antwort zu der sehr groben Unterscheidbarkeit des Soundex Algorithmus entwickelt. Er ist …   Deutsch Wikipedia

  • Metaphone — Lawrence Philips redirects here. For the football player, see Lawrence Phillips. Metaphone is a phonetic algorithm, an algorithm published in 1990 for indexing words by their English pronunciation. It fundamentally improves on the Soundex… …   Wikipedia

  • Metaphone — Le Metaphone est un algorithme phonétique, algorithme pour indexer les mots selon leur sonorité lorsque prononcé en anglais. Metaphone a été développé par Lawrence Philips comme une réponse aux déficiences de l algorithme Soundex. Il est plus… …   Wikipédia en Français

  • metaphone — met·a·phone …   English syllables

  • metaphone — /ˈmɛtəfoʊn/ (say metuhfohn) noun Phonetics a form of a phoneme which is in free variation with other such forms in particular words or particular circumstances. {meta + phone} …  

  • metaphone — ˈ ̷ ̷ ̷ ̷ˌfōn noun Etymology: meta + phone : a free allophonic variant chosen in preference to another because regarded as more suitable to the style of speech being used …   Useful english dictionary

  • Double Metaphone — The Double Metaphone search algorithm is a phonetic algorithm written by Lawrence Philips and is the second generation of his Metaphone algorithm. Its implementation was described in the June 2000 issue of C/C++ Users Journal .It is called Double …   Wikipedia

  • Double Metaphone — Le Double Metaphone est un algorithme de recherche phonétique écrit par Lawrence Philips et est la deuxième génération de l algorithme Metaphone. Son implémentation a été décrite en juin 2000 dans le magazine C/C++ Users Journal. Il est appelé… …   Wikipédia en Français

  • Soundex — is a phonetic algorithm for indexing names by sound, as pronounced in English. The goal is for names with the same pronunciation to be encoded to the same representation so that they can be matched despite minor differences in spelling. Soundex… …   Wikipedia

Compartir el artículo y extractos

Link directo
Do a right-click on the link above
and select “Copy Link”