lib/natural/stemmers/porter_stemmer_fr.js
function endsinArr(token, suffixes) {
  var i, longest = '';
  for (i = 0; i < suffixes.length; i++) {
    if (endsin(token, suffixes[i]) && suffixes[i].length > longest.length)
      longest = suffixes[i];
  }

  return longest;
}
function endsinArr(token, suffixes) {
  var i, longest = '';
  for (i = 0; i < suffixes.length; i++) {
    if (endsin(token, suffixes[i]) && suffixes[i].length > longest.length)
      longest = suffixes[i];
  }

  return longest;
}
function endsinArr ( token , suffixes ) { var i , longest = '' ; for ( i = 0 ; i < suffixes . length ; i ++ ) { if ( endsin ( token , suffixes [ i ] ) && suffixes [ i ] . length > longest . length ) longest = suffixes [ i ] ; } return longest ; }
Return longest matching suffixes for a token or '' if no suffix match
@param  {String} token    Word to find matching suffix
@param  {Array} suffixes  Array of suffixes to test matching
@return {String}          Longest found matching suffix or ''
Return longest matching suffixes for a token or if no suffix match