Skip to content

MrRefactoring/multilingual-stemmer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published