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
child_spec(arg)
Returns a specification to start this module under a supervisor.
See Supervisor
.
handle_call(msg, from, state)
GenServer callback for stemming a word.
init(atom)
init(:ok) :: {:ok, map()}
init(:ok) :: {:ok, map()}
GenServer callback for initialization
start_link()
start_link() :: none()
start_link() :: none()
Starts the GenServer
stem(word)
Stems the given word; works without the GenServer.
stem(server, word)
Calls the given GenServer pid to stem the given word
stop(server)
stop(pid()) :: :ok
stop(pid()) :: :ok
Stops the GenServer