multilingual-stemmer
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

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
 

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.2
    52
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.2
    52
  • 1.0.1
    2
  • 1.0.0
    2

Package Sidebar

Install

npm i multilingual-stemmer

Weekly Downloads

12

Version

1.0.2

License

MIT

Unpacked Size

244 kB

Total Files

8

Last publish

Collaborators

  • mrrefactoring