category

language_profile_common

Shared predicates for language detection profiles.

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

Public predicates

trigram_counts/1

Returns trigram counts derived from the profile stop-word inventory.

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

trigram_counts/2

Returns the profile trigram counts and their squared norm, using cached values when available.

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

Protected predicates

(no local declarations; see entity ancestors if any)

Private predicates

trigram_counts_/2

Returns cached profile trigram counts and their squared norm when available.

Compilation flags:
static
Template:
trigram_counts_(Counts,SquareSum)
Mode and number of proofs:
trigram_counts_(-list(pair(atom,positive_integer)),-float) - zero_or_one

Operators

(none)