The stem function takes a scalar as a parameter and stems the word according to
Martin Porters Danish stemming algorithm.
