Reply to Re: [PHP] Phonetic speller function

Your name:

Reply:


Posted by Greg Donald on 01/18/05 01:18

On Mon, 17 Jan 2005 23:43:48 +0200, Dotan Cohen
<dotan_0105@dotancohen.com> wrote:
> I looked at the 'sound like' modules in php (leveshtien, soundex) but they are
> for comparing 2 strings, not creating a string based on what we already have.

You're looking at it from the wrong end.

With soundex you create soundex values for _all_ your known words, and
you stick them in a db.. then you find the soundex value for the word
in question and you do a lookup in your db to find other words with
the closest values. You're right that you don't create any new
strings based on the word. Instead you would provide a listing of
similar words from the db lookup. It's all up to you what words go
into the db to pick from.

I read somewhere most English speaking folks only use about 80K words or so.


--
Greg Donald
Zend Certified Engineer
http://destiney.com/

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация