protocol

language_profile_protocol

Language detection profile protocol.

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

Public predicates

language/1

Returns the profile ISO 639-1 language code.

Compilation flags:
static
Template:
language(Language)
Mode and number of proofs:
language(-atom) - one

trigram_counts/1

Returns the lexically sorted character-trigram count vector.

Compilation flags:
static
Template:
trigram_counts(Counts)
Mode and number of proofs:
trigram_counts(-list(pair(text,positive_integer))) - one

stop_word/1

Enumerates canonical lowercase stop words.

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

Protected predicates

(none)

Private predicates

(none)

Operators

(none)