You are here

function RussianStemmer::s in Russian stemming 7

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

File

./RussianStemmer.php, line 29
Definition of RussianStemmer.

Class

RussianStemmer
Implements Russian Stemming algorithm.

Code

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