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


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to