views:

102

answers:

2

Hello, I am in need of a stemmers written in Javascript for european languages. I'm currently looking for a french stemmer, but if there's stemmer for any other language, please let me know. There are stemmers available in Java, but not for javascript!

Here are the Java implementations: http://snowball.tartarus.org/

You can download all stemmers at once from here: http://snowball.tartarus.org/dist/libstemmer_java.tgz

These are based on Porter algorithm.

+1  A: 

What I've done was not a real translation of one Programming language to another.

What I've done is: I've look at the description of the algorithm and put this in code on my own. I never looked at the java or c implementation. I've only looked at: http://snowball.tartarus.org/algorithms/german/stemmer.html

but for french you should take a look at: http://snowball.tartarus.org/algorithms/french/stemmer.html

With this you should be able to code a stemmer in any language you want.

jigfox
Great, thanks, I'll look in to it! BTW, did you consider uploading your code to snowball site? If not please consider it for the benefit of other people. You may send a mail to their mailing list: http://lists.tartarus.org/mailman/listinfo/snowball-discuss
KasunBG
sadly it's to late for this. I've done this for my former employer more than 3 years ago, and I have no longer access to the code.
jigfox
+1  A: 

I used Porter stemmers in my Firefox add-on. You should make special for Firefox add-ons import code instruction of FrenchStemmer.js in lines

Components.utils.import("resource://urim/analysis/stemmer/Among.js");
Components.utils.import("resource://urim/analysis/stemmer/SnowballProgram.js");

as inline code to produce one stemmer file or something like this.

Oleg Mazko
That's impressive. You should make this snowball port a standalone library.
troelskn
Now JavaScript snowball port library is here http://urim.googlecode.com/files/jsSnowball_0.1.zip
Oleg Mazko