The Porter Stemmer

This small script makes use of the Porter stemming algorithm, created by Martin Porter. The javascript implementation was written by "Andargor."

Type some words into the box and watch as their stems are calculated and printed below. If you quote a word or phrase, that string will not be stemmed; this is not a built-in function of the Porter Stemmer, but rather built into the "bootstrap" code on this page. The quoted words always appear at the end of the keywords string because it was easier to implement that way and because this is intended to be used for keyword searches, for which that ordering ought not affect results.

Try entering words like "computer," "nursing," "engineering." Also try entering them in quotes to see that they do not get stemmed.

By means of demonstrationg, there are "live" checkboxes that change a couple of options in the stemmer object.

Stem keywords:


Keywords: