Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stemerge

Hex.pm Version Hexdocs Build License Erlang Versions

Stemerge is a collection of stemmers in Erlang.

Supported languages

At the moment, the following languages are supported:

  • English (Porter2 stemming algorithm)
  • Finnish

Romance:

  • French
  • Italian
  • Portuguese
  • Spanish

Germanic:

  • Dutch
  • German

Scandinavian:

  • Danish
  • Norwegian
  • Swedish

Usage

Erlang

Add stemerge as a dependency to the rebar.config:

{deps, [
    {"stemerge", "0.4.0"}
]}.

Specify the language code of the word you'd like to stem, like this:

stemerge:stem("stemerge", "en")

or call the stem/1 API of any available stemmer separately:

stemerge_no:stem("havneeier")

Elixir

Add stemerge as a dependency to the mix.exs:

defp deps do
  [
    {:stemerge, "0.4.0"}
  ]
end

Call the Erlang API from Elixir:

:stemerge.stem("stemming", "en")

Gleam

Add stemerge as a dependency to the gleam.toml:

[dependencies]
stemerge = "0.4.0"

Define an external function:

@external(erlang, "stemerge", "stem")
pub fn stem(s: String, lang: String) -> String

Call the external function from Gleam:

stem("stemming", "en")

About

A collection of stemmers in Erlang 🌱

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages