Re: catching plurals
| From: | Dan Hardiker | Date: | Tue, 11 Jun 2002 08:45:15 +0000 |
| Subject: | Re: catching plurals | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-101508@lists.php.net to get a copy of this message | ||
> 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?
Your best bet is to use a phonetic search (for speed) looking up against a
dictionary file.... although there are speed impacts.
--
Dan Hardiker [dhardiker@staff.firstcreative.net]
ADAM Software & Systems Engineer
First Creative Ltd