Stemerge
View SourceStemerge 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"}
]
endCall 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) -> StringCall the external function from Gleam:
stem("stemming", "en")