Featured Post

Vista – Windows installer service could not be accessed

*facepalm* What a mini nightmare this turned out to be, but after an hour of unsuccessful googled fixes we have a winner! Here is a brief list of what I tried and then the one that worked and made the most sense; sorry I don't have post-backs to where the information came from, and I do not take credit...

Read More

ASP Search Stemmer Class

Posted by chelfers | Posted in ASP, Web | Posted on 02-08-2009

Tags: , , ,

0

The original stemmer class was developed by Martin Porter to bring words back to their word stems. For example "abilities" would stem to "able", "smelling" to "smell", "I'm awesome" to "damn straight", etc.

I couldn't find a Classic ASP version of this so I ported a port ( I'm not even sure if that's legal! ).

example usage

set Search = new Stemmer      tmp_string = Search.Stem( "abilities" )      response.write tmp_string set Search = nothing

This should produce an echo of "able". Below is a dictionary list of words you can test the class out with, let me know if you find any bugs or issues.

Download ASP Stemmer 1.0.0
Download Dictionary File