Re: Pluralize a word for searching a database
| From: | richard merit | Date: | Wed, 28 Feb 2001 18:33:47 +0000 |
| Subject: | Re: Pluralize a word for searching a database | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-42058@lists.php.net to get a copy of this message | ||
I don't think you can since the plural form of English
words can vary, woman, women, families, family, foot,
feet, church, churches, sheep, sheep, road, roads...
?????
rm
--- "Robert V. Zwink" <rzwink@microcenter.com> wrote:
> 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:
> php-general-unsubscribe@lists.php.net
> For additional commands, e-mail:
> php-general-help@lists.php.net
> To contact the list administrators, e-mail:
> php-list-admin@lists.php.net
>
__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail.
http://personal.mail.yahoo.com/