Re: Pluralize a word for searching a database

From: Date: Thu, 01 Mar 2001 02:02:11 +0000
Subject: Re: Pluralize a word for searching a database
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-42108@lists.php.net to get a copy of this message
In article <20010228183347.89585.qmail@web12715.mail.yahoo.com>, richand2002@yahoo.com (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" <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; > > } Maybe by posting a lookup to an online dictionary, and parsing out the returned definition for the plural wordform...? -- CC

« previous php.general (#42108) next »