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('/(?<!c)heid$/u', $word, $matches, 0, $r2)) {
-      $word = preg_replace('/heid$/u', '', $word, -1, $count);
+      $word = preg_replace('/heid$/u', '', $word, -1);
       if (preg_match('/en$/u', $word, $matches, 0, $r1)) {
-        $word = dutchstemmer_undouble(preg_replace('/en$/u', '', $word, -1, $count));
+        $word = dutchstemmer_undouble(preg_replace('/en$/u', '', $word, -1));
       }
     }
   }
@@ -146,27 +146,27 @@
   if ($r2) {
     // -baar
     if (preg_match('/baar$/u', $word, $matches, 0, $r2)) {
-      $word = preg_replace('/baar$/u', '', $word, -1, $count);
+      $word = preg_replace('/baar$/u', '', $word, -1);
     }
     // -lijk
     else if (preg_match('/lijk$/u', $word, $matches, 0, $r2)) {
-      $word = dutchstemmer_step2(preg_replace('/lijk$/u', '', $word, -1, $count), $r1, $r2);
+      $word = dutchstemmer_step2(preg_replace('/lijk$/u', '', $word, -1), $r1, $r2);
     }
     // -end / -ing
     else if (preg_match('/(end|ing)$/u', $word, $matches, 0, $r2)) {
-      $word = preg_replace('/(end|ing)$/u', '', $word, -1, $count);
+      $word = preg_replace('/(end|ing)$/u', '', $word, -1);
       // -ig
       if (preg_match('/(?<!e)ig$/u', $word, $matches, 0, $r2)) {
-        $word = preg_replace('/ig$/u', '', $word, -1, $count);
+        $word = preg_replace('/ig$/u', '', $word, -1);
       }
     }
     // -ig
     else if (preg_match('/(?<!e)ig$/u', $word, $matches, 0, $r2)) {
-      $word = preg_replace('/ig$/u', '', $word, -1, $count);
+      $word = preg_replace('/ig$/u', '', $word, -1);
     }
     // -bar
     else if ($step2 && preg_match('/bar$/u', $word, $matches, 0, $r2)) {
-      $word = preg_replace('/bar$/u', '', $word, -1, $count);
+      $word = preg_replace('/bar$/u', '', $word, -1);
     }
   }
 
