porter2 v0.1.1 Porter2

An implementation of the Porter2 word stemming algorithm for the english language as described on http://snowballstem.org/algorithms/english/stemmer.html

Please note that special word forms are currently not regarded separately.

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor

GenServer callback for stemming a word

GenServer callback for initialization

Starts the GenServer

Stems the given word; works without the GenServer

Calls the given GenServer pid to stem the given word

Stops the GenServer

Link to this section Functions

Link to this function

child_spec(arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

Link to this function

handle_call(msg, from, state)
handle_call({atom(), binary()}, pid(), map()) :: {atom(), any(), map()}

GenServer callback for stemming a word.

Link to this function

init(atom)
init(:ok) :: {:ok, map()}

GenServer callback for initialization

Link to this function

start_link()
start_link() :: none()

Starts the GenServer

Link to this function

stem(word)
stem(binary()) :: binary()

Stems the given word; works without the GenServer.

Link to this function

stem(server, word)
stem(pid(), binary()) :: binary()

Calls the given GenServer pid to stem the given word

Link to this function

stop(server)
stop(pid()) :: :ok

Stops the GenServer