soltice wrote in php

word roots

Is there some grammatical rule to exploit so that I can detect if a word is a plural or not?   I also need a way to get the sigular form of that word. I would like to do both of these without comparing to a dictionary file or a database, if possible.

Thanks!