$regex_consonant : string
Regex for matching a consonant
PHP5 Implementation of the Porter Stemmer algorithm. Certain elements were borrowed from the (broken) implementation by Jon Abernathy.
$stem = PorterStemmer::Stem($word);
How easy is that?
replace(string $str, string $check, string $repl, integer $m = null) : boolean
Replaces the first string with the second, at the end of the string. If third arg is given, then the preceding string must match that m count at least.
String to check
Ending to check for
Optional minimum number of m() to meet
Whether the $check string was at the end of the $str string. True does not necessarily mean that it was replaced.
m(string $str) : integer
What, you mean it's not obvious from the name?
m() measures the number of consonant sequences in $str. if c is a consonant sequence and v a vowel sequence, and <..> indicates arbitrary presence,
The string to return the m count for
The m count