"Opposite" of Porter Stemmer algorithm?

614 views Asked by At

I'm looking for some way of performing the opposite of a Porter Stemmer algorithm, i.e. the string "search" would return an array "searches, searched, searching etc.."

Does something like this exist already (pref in php)?

Thank you for your help!

1

There are 1 answers

1
Benjamin Powers On BEST ANSWER

I'm not sure if this is the direction that you're looking to go but I would grab a file of dictionary words (Mac and nix machines usually have one at /usr/share/dict/words) and load it into an easily searched storage mechanism.

Next, I'd compile a list of suffixes and program in the rules applied to suffixes.

In regard to the actual question asked I have not found anything that exists like this already.