Function Stemmer_EN->doubleConsonant

Definitions

sources/lang_stemmer_EN.php

  • Returns true/false as to whether the given string contains twoof the same consonant next to each other at the end of the string.
  • Visibility: private
  • Is abstract?: No
  • Is static?: Yes
  • Is final?: No

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$str string No No required parameter N/A N/A String to check

Returns

  • Result
  • Type: bool
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Returns true/false as to whether the given string contains twoof the same consonant next to each other at the end of the string.
 *
 * @param  string $str String to check
 * @return bool Result
 */

private static function doubleConsonant($str)