lib/keywords/porter_stemmer.js
function step5b(token) {
    if(measure(token) > 1) {
        if(endsWithDoublCons(token) && token.substr(-2) == 'll')
           return token.replace(/ll$/, 'l'); 
    }
    
    return token;
}
function step5b(token) {
    if(measure(token) > 1) {
        if(endsWithDoublCons(token) && token.substr(-2) == 'll')
           return token.replace(/ll$/, 'l'); 
    }
    
    return token;
}
function step5b ( token ) { if ( measure ( token ) > 1 ) { if ( endsWithDoublCons ( token ) && token . substr ( - 2 ) == 'll' ) return token . replace ( / ll$ / , 'l' ) ; } return token ; }
step 5b as defined for the porter stemmer algorithm.
step 5b as defined for the porter stemmer algorithm .