protocol

stop_words_protocol

Stop-word enumeration and filtering protocol.

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

Public predicates

stop_word/1

Enumerates canonical stop words using the configured text representation.

Compilation flags:
static
Template:
stop_word(Word)
Mode and number of proofs:
stop_word(?text) - zero_or_more

is_stop_word/1

True if the word, after ASCII lowercasing, is a stop word.

Compilation flags:
static
Template:
is_stop_word(Word)
Mode and number of proofs:
is_stop_word(+text) - zero_or_one

exclude/2

Removes stop words, preserving the representation, value, and order of the remaining words.

Compilation flags:
static
Template:
exclude(Words,Filtered)
Mode and number of proofs:
exclude(+list(text),-list(text)) - one

Protected predicates

(none)

Private predicates

(none)

Operators

(none)