Function Stemmer_EN->m

Definitions

sources/lang_stemmer_EN.php

  • What, you mean it's not obvious from the name?m() measures the number of consonant sequences in $str. if c isa consonant sequence and v a vowel sequence, and <..> indicates arbitrarypresence,<c><v> gives 0<c>vc<v> gives 1<c>vcvc<v> gives 2<c>vcvcvc<v> gives 3
  • 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 The string to return the m count for

Returns

  • The m count
  • Type: int
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * What, you mean it's not obvious from the name?m() measures the number of consonant sequences in $str. if c isa consonant sequence and v a vowel sequence, and <..> indicates arbitrarypresence,<c><v>       gives 0<c>vc<v>     gives 1<c>vcvc<v>   gives 2<c>vcvcvc<v> gives 3
 *
 * @param  string $str The string to return the m count for
 * @return int The m count
 */

private static function m($str)