lib/keywords/porter_stemmer.js
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;
}
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;
}
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 ; }
step 5a as defined for the porter stemmer algorithm.
step 5a as defined for the porter stemmer algorithm .