lucene-stemmers
v1.2.1
Published
Stem words like with Lucene
Downloads
20
Maintainers
Readme
Lucene Stemmers in JavaScript
Lucene Stemmers
is a port of Lucene's stemmers in JavaScript.
Changelog
See CHANGELOG.md
Install
npm install lucene-stemmers
Usage
In plain JavaScript:
const { stemFrenchMinimal } = require("lucene-stemmers");
const stemmed = stemFrenchMinimal("chevaux");
// stemmed === "cheval"
In Typescript:
import { stemFrenchMinimal } from "lucene-stemmers";
const stemmed = stemFrenchMinimal("chevaux");
// stemmed === "cheval"
Stemmers implemented
These stemmers are available:
- [x] French
- [x] Minimal
- Function:
stemFrenchMinimal
- Lucene source code
- Function:
- [x] Light
- Function:
stemFrenchLight
- Lucene source code
- Function:
- [x] Minimal
- [x] Italian
- [x] Light
- Function:
stemItalianLight
- Lucene source code
- Function:
- [x] Light
TODO
- [ ] Add why
- [ ] Add more stemmers
- [ ] Publish browser version
- [ ] CI