Fred
Fred

Reputation: 1041

"Opposite" of Porter Stemmer algorithm?

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!

Upvotes: 6

Views: 615

Answers (1)

Benjamin Powers
Benjamin Powers

Reputation: 3256

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.

Upvotes: 2

Related Questions