lib/natural/stemmers/porter_stemmer_pt.js
function () {
    var rv = this.string.length;

    if (rv > 3) {
      if (!this.hasVowelAtIndex(1)) {
        rv = this.nextVowelIndex(2) + 1;

      } else if (this.hasVowelAtIndex(0) && this.hasVowelAtIndex(1)) {
        rv = this.nextConsonantIndex(2) + 1;

      } else {
        rv = 3;
      }
    }

    return rv;
  }
function () {
    var rv = this.string.length;

    if (rv > 3) {
      if (!this.hasVowelAtIndex(1)) {
        rv = this.nextVowelIndex(2) + 1;

      } else if (this.hasVowelAtIndex(0) && this.hasVowelAtIndex(1)) {
        rv = this.nextConsonantIndex(2) + 1;

      } else {
        rv = 3;
      }
    }

    return rv;
  }
function ( ) { var rv = this . string . length ; if ( rv > 3 ) { if ( ! this . hasVowelAtIndex ( 1 ) ) { rv = this . nextVowelIndex ( 2 ) + 1 ; } else if ( this . hasVowelAtIndex ( 0 ) && this . hasVowelAtIndex ( 1 ) ) { rv = this . nextConsonantIndex ( 2 ) + 1 ; } else { rv = 3 ; } } return rv ; }
Mark RV.

@param  {Object} token Token to stem.
@return {Number}       Region start index.
Mark RV .