Dotan,
Greg Donald wrote:
On Mon, 17 Jan 2005 23:43:48 +0200, Dotan Cohen
<[EMAIL PROTECTED]> 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.
On Mon, 17 Jan 2005 23:43:48 +0200, Dotan Cohen
<[EMAIL PROTECTED]> 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 cre
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.
I see that str_replace supports regular expessions. Without devoting hours
learning to write a regex, would it be inappropriate for me to
Dotan Cohen wrote:
> kayak. Focusing only on the 'k's I get this array: kayak, cayac. But I
> need
> kayak, kayac, cayak, cayac.
You may (or may not) be able to get something going with that extra
optional last argument to str_replace which tells how many characters to
replace.
str_replace('k',
On Mon, 17 Jan 2005 01:07:12 +0200, Dotan Cohen
<[EMAIL PROTECTED]> wrote:
> I am creating an app that will take any word and return an array with all the
> possible ways of spelling it.
PHP has soundex, which may greatly assist in what you are doing:
php.net/soundex
Lots of good examples in the
Hi all,
I am creating an app that will take any word and return an array with all the
possible ways of spelling it. I wrote a function that replaces letter(s) with
other letter(s) with similar sounds. For instance, 'pink' returns:
Array
(
[0] => pink
[1] => pinc
[2] => pynk
[3] =
6 matches
Mail list logo