https://github.com/mbejda/nodejs-jsnowball
Snowball is a small string processing language designed for creating stemming algorithms for use in Information Retrieval.
https://github.com/mbejda/nodejs-jsnowball
Last synced: 11 months ago
JSON representation
Snowball is a small string processing language designed for creating stemming algorithms for use in Information Retrieval.
- Host: GitHub
- URL: https://github.com/mbejda/nodejs-jsnowball
- Owner: mbejda
- Created: 2015-10-07T18:51:35.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-10-07T19:08:08.000Z (almost 11 years ago)
- Last Synced: 2025-08-09T09:12:47.407Z (11 months ago)
- Language: Java
- Size: 414 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
#Nodejs jSnowball Stemmer
Snowball is a small string processing language designed for creating stemming algorithms for use in Information Retrieval. The Nodejs verion of the Snowball Stemmer supports 17 languages
The Snowball stemmer can be found on their homepage. http://snowball.tartarus.org
## Supported Languages
- danish
- dutch
- english
- finnish
- german
- hungarian
- italian
- norwegian
- romanian
- russian
- spanish
- swedish
- porter
- portuguese
- romanian
- spanish
- turkish
## Installation
The Snowball stemmer uses *Node-Java* internally. Make sure your system is configured properly to run *Node-Java*.
https://github.com/joeferner/node-java
```
npm install jsnowball --save
```
## Usage
```
var SnowBall = require('jsnowball');
var snowBall = new SnowBall('english');
snowBall.stem('Checks if word is stemmed',function(error,response){
console.log(response);/// [ 'Check', 'if', 'word', 'is', 'stem' ]
});
```
*Tested on:*
- Node.js : v0.12.7
- java version "1.8.0_31"
- Java(TM) SE Runtime Environment (build 1.8.0_31-b13)
- Java HotSpot(TM) 64-Bit Server VM (build 25.31-b07, mixed mode)
If you have any questions or reporting an issue send me a tweet *@notmilobejda*.
[mbejda.com](http://mbejda.com)