snowball

Snowball stemmers for deno. These stemmers are based on the compiled JavaScript stemmers from the snowball project version 2.2.0.

Usage

EnglishStemmer

import { EnglishStemmer } from "https://deno.land/x/snowball.english_stemmer.ts";

const englishStemmer = new EnglishStemmer();

const stem = englishStemmer.stem("enthusiastically");

assertStrictEquals(stem, "enthusiast");

Supported Languages

Unless specified, there is only one stemmer available called LanguageStemmer.

  1. Arabic
  2. Armenian
  3. Basque
  4. Catalan
  5. Danish
  6. Dutch
  • DutchStemmer
  • KraaijPohlmannStemmer
  1. English
  • EnglishStemmer - Porter 2 or snowball algorithm
  • PorterStemmer - Porter 1 stemmer
  • LovinsStemmer - The first published stemming algorithm
  1. Finnish
  2. French
  3. German
  4. Greek
  5. Hindi
  6. Hungarian
  7. Indonesian (needs to be fixes)
  8. Irish
  9. Italian
  10. Lithuanian
  11. Nepali
  12. Norwegian
  13. Protugese
  14. Romanian
  15. Russian
  16. Serbian
  17. Spanish
  18. Swedish
  19. Tamil
  20. Turkish
  21. Yiddish