[PHP] Pluralize a word for searching a database

2001-02-28 Thread Robert V. Zwink
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

Re: [PHP] Pluralize a word for searching a database

2001-02-28 Thread richard merit
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" [EMAIL PROTECTED] wrote: Has anyone every written a function in php to pluralize an english word,

Re: [PHP] Pluralize a word for searching a database

2001-02-28 Thread CC Zona
In article [EMAIL PROTECTED], [EMAIL PROTECTED] (richard merit) wrote: 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" [EMAIL PROTECTED]