This is a very short and simple snippet that will take a given string, $string, and if it is plural the 's' will be removed from the $string.
if($string{strlen($string)-1} == 's') { $string = substr($string, 0, -1); }
haha
I think we've already determined this is quite a flawed script >.<
What about 'es' plural words? :P
i understand =D the work would outweigh the use XD
This basically assumes the given string is already plural. I use it to convert category names, such as "Computers" => "Computer". To determine if a word is plural or not would require some much more advanced coding.
or sis.
what if the word is something like "is"