Index: dutchstemmer.module =================================================================== --- dutchstemmer.module (revision 1091) +++ dutchstemmer.module (working copy) @@ -101,15 +101,15 @@ if ($r1) { // -heden if (preg_match('/heden$/u', $word, $matches, 0, $r1)) { - return preg_replace('/heden$/u', 'heid', $word, -1, $count); + return preg_replace('/heden$/u', 'heid', $word, -1); } // -en(e) else if (preg_match('/(?<=[^aeiouyè]|gem)ene?$/u', $word, $matches, 0, $r1)) { - return dutchstemmer_undouble(preg_replace('/ene?$/u', '', $word, -1, $count)); + return dutchstemmer_undouble(preg_replace('/ene?$/u', '', $word, -1)); } // -s(e) else if (preg_match('/(?<=[^jaeiouyè])se?$/u', $word, $matches, 0, $r1)) { - return rtrim(preg_replace('/se?$/u', '', $word, -1, $count), "'"); + return rtrim(preg_replace('/se?$/u', '', $word, -1), "'"); } } return $word; @@ -121,7 +121,7 @@ if ($r1) { if (preg_match('/(?<=[^aeiouyè])e$/u', $word, $matches, 0, $r1)) { $step2 = TRUE; - return dutchstemmer_undouble(preg_replace('/e$/u', '', $word, -1, $count)); + return dutchstemmer_undouble(preg_replace('/e$/u', '', $word, -1)); } } return $word; @@ -134,9 +134,9 @@ // delete heid if in R2 and not preceded by c, and treat a preceding en as in step 1(b) if ($r2) { if (preg_match('/(?