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

CommentFileSizeAuthor
#4 dutchstemmer.zip2.78 KBpromes

Comments

clemens.tolboom’s picture

If you can find me a small sponsor :-)

allartk’s picture

Hey,

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

E.g.


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;
}
promes’s picture

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....

promes’s picture

StatusFileSize
new2.78 KB

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.

promes’s picture

Assigned: Unassigned » 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.

cyberwolf’s picture

Am I right that the 7.x-1.x git branch does not contain the updated code yet? It still says core=6.x in its .info file.

Trying the zip now that was uploaded here.

cyberwolf’s picture

The zip seems to work fine. A search for "paddo's" (don't ask :D) delivers the correct results now, and no longer includes a wildcard search on just 's'.

clemens.tolboom’s picture

Darn ... you prob are right.

I didn't support @promes effort enough. I'll try to fix this this week.

franskuipers’s picture

Assigned: clemens.tolboom » Unassigned
Status: Active » Fixed

See this and this

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.