Re: catching plurals

From: Date: Wed, 12 Jun 2002 06:11:12 +0000
Subject: Re: catching plurals
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-101694@lists.php.net to get a copy of this message
On Tue, 11 Jun 2002, Zac Hillier wrote: > I'm trying to write a function to catch and remove plurals from a search > feature, can anyone suggest how I can efficiently remove 'ies' and 's' > from the right hand end of each word within an array? You are wasting your time (and preparing to really annoy your users) trying to do this with any algorithm. Too many singular words end with 's'. Are you going to change "this" to "thi" and "lens" to "len"? Sounds really handy. The only way you're going to get it to work is if you can find a dictionary file that contains words and their plurals. miguel

« previous php.general (#101694) next »