Project:Dutch Stemmer
Version:master
Component:Code
Category:task
Priority:normal
Assigned:clemens.tolboom
Status:active

Issue Summary

Are there any plans for a Drupal 7 version of this module?

Comments

#1

If you can find me a small sponsor :-)

#2

Hey,

For drupal 7 you can use http://code.google.com/p/php-dutch-stemmer/ and user hook_search_preprocess

E.g.

<?php
function ornithoweb_search_preprocess($text) {
  require_once(
"dutchstemmer/dutchstemmer.php");
 
$stemmer = new DutchStemmer(); 
 
$words = explode(' ',$text);
 
$text = ''
  foreach(
$words as $word) {
    
$text .= ' '.$stemmer->stemWord($word);
  }
  return
$text;
}
?>

#3

Allartk thank you.

Attention: I found a bug in the dutchstemmer code. See: http://code.google.com/p/php-dutch-stemmer/issues/detail?id=1&thanks=1&t....

#4

I did use the library #2 some more and found several more out of index errors. So I took the D6 implementation of Clemens and made a few nessecary modifications, due to stricter PHP checking of PHP 5.3.
Attached a complete D7 dutchstemmer. Enjoy it.

AttachmentSize
dutchstemmer.zip 2.78 KB

#5

Assigned to:Anonymous» clemens.tolboom

php 5.3 and coder warnings corrected. Created a new 6.x-1.x-dev and the first 7.x-1.x-dev version created.

nobody click here