You are here

function RussianStemmer::s in Russian stemming 6

Same name and namespace in other branches
  1. 7 RussianStemmer.php \RussianStemmer::s()
1 call to RussianStemmer::s()
RussianStemmer::stem_word in ./rustemmer.module

File

./rustemmer.module, line 88
Russian stemming algorith provided by Dr Martin Porter

Class

RussianStemmer
Implements Russian Stemming algorithm.

Code

function s(&$s, $re, $to) {
  $orig = $s;
  $s = preg_replace($re, $to, $s);
  return $orig !== $s;
}