Package Exports
- lucene-stemmers
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (lucene-stemmers) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Lucene Stemmers in JavaScript
Lucene Stemmersis a port of Lucene's stemmers in JavaScript.
Changelog
See CHANGELOG.md
Install
npm install lucene-stemmersUsage
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:
- French
- Minimal
- Function:
stemFrenchMinimal - Lucene source code
- Function:
- Light
- Function:
stemFrenchLight - Lucene source code
- Function:
- Minimal
- Italian
- Light
- Function:
stemItalianLight - Lucene source code
- Function:
- Light
TODO
- Add why
- Add more stemmers
- Publish browser version
- CI