Skip to content

seafoamteal/snowball_stemmer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

snowball_stemmer

Package Version Hex Docs

gleam add snowball_stemmer@1
import snowball_stemmer

pub fn main() {
  let stemmer = snowball_stemmer.new()
  assert "repeatedly" |> snowball_stemmer.stem(stemmer, _) == "repeat"
}

The Snowball Project is a

small string processing language for creating stemming algorithms for use in Information Retrieval, plus a collection of stemming algorithms implemented using it.

This package implements the English Snowball stemmer, also known as the Porter2 stemming algorithm in pure Gleam.

Further documentation can be found at https://hexdocs.pm/snowball_stemmer.

Development

gleam test  # Run unit tests
gleam test -- full # Stem all ~40k test words from the Snowball project
gleam test -- bench # Benchmark snowball_stemmer against `porter_stemmer`

About

A pure Gleam implementation of the Snowball (Porter2) Word Stemming Algorithm for English

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •