In case anyone wonders, I ended up recompiling php with the pspell and
aspell functions.  These functions will return pluralized versions of words,
along with possible spellings.  I will probably try to customize the
dictionary that comes with the programs, but other that that it appears to
be what I am looking for.

Thanks for your help.

Robert Zwink

-----Original Message-----
From: Robert V. Zwink [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 28, 2001 11:43 AM
To: PHP Mailing Listl (E-mail)
Subject: [PHP] Pluralize a word for searching a database
Importance: High


Has anyone every written a function in php to pluralize an english word,
particularly when searching a database?

function pluralize($word){
return array of pluralized words;
}

Any help would be appreciated.  Seems like their might be a nice regex
waiting to handle this?  Thanks!

Robert Zwink
http://zwink.levitate.org


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to