code: function step5a(token) {
      var m = measure(token);
      
      if((m > 1 && token.substr(-1) == 'e') || (m == 1 && !(categorizeChars(token).substr(-4, 3) == 'CVC' && token.match(/[^wxy].$/))))
          return token.replace(/e$/, '');
  
      return token;
  }
docs: step 5a as defined for the porter stemmer algorithm.