Search code examples
phpcpu-wordporter-stemmer

Is there a tool to obtain all get all derivatives of a word in PHP?


I need to input "face" and get "facial, faces, faced, facing, facer, faceable" etc.

I've come across some ineffective programs which do the opposite, such as SNOWBALL and a couple of Porter Stemming PHP scripts which don't seem to work.

I'm beginning to think I may have to write this script - But, I thought I'd check to see if somebody has already been there/done that.


Solution

  • It will be very hard to simply find an algorithm to find the different way a word can be written like that.

    You can use a dictionary webservice instead that have all the words available already