Updated stemmer for the regular expressions code