JSPM

multilingual-stemmer

1.0.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 221
  • Score
    100M100P100Q89102F
  • License MIT

A nodejs implementation of some popular snowball stemming algorithms

Package Exports

  • multilingual-stemmer

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 (multilingual-stemmer) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Multilingual stemmer

This package implements some stemmer algorithms found in the snowball project.

Under the hood is used rust, compiled by webassembly to work in node.js

Supported Languages

  • Arabic
  • Danish
  • Dutch
  • English
  • French
  • German
  • Greek
  • Hungarian
  • Italian
  • Portuguese
  • Romanian
  • Russian
  • Spanish
  • Swedish
  • Tamil
  • Turkish

Installation

npm i multilingual-stemmer

Usage

import { Stemmer, Languages } from 'multilingual-stemmer';

// Create a stemmer for the english language
const stemmer = new Stemmer(Languages.English);

// Stemm the word "fruitlessly"
// Please be aware that all languages expect their input to only contain lowercase characters.
console.log(stemmer.stem("fruitlessly")) // "fruitless" output