stemmer_protocol — Logtalk 3.100.1

protocol

# `stemmer_protocol`

Stemmer protocol for reducing words to their stems.

Availability:
`logtalk_load(stemming(loader))`
Author: Paulo Moura
Version: 1:0:0
Date: 2026-02-05
Compilation flags:
`static`
Dependencies:
(none)
Remarks:
(none)
Inherited public predicates:
(none)

## Public predicates

### `stem/2`

Stems a single word, returning its root form.

Compilation flags:
`static`
Template:
`stem(Word,Stem)`
Mode and number of proofs:
`stem(+text,-text)` - `one`

### `stems/2`

Stems a list of words, returning a list of their root forms.

Compilation flags:
`static`
Template:
`stems(Words,Stems)`
Mode and number of proofs:
`stems(+list(text),-list(text))` - `one`

## Protected predicates

(none)

## Private predicates

(none)

## Operators

(none)

See also

porter_stemmer(Representation), lovins_stemmer(Representation)