.. index:: single: language_profile_common .. _language_profile_common/0: .. rst-class:: right **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`` | **Implements:** | ``public`` :ref:`language_profile_protocol ` | **Uses:** | :ref:`list ` | :ref:`n_grams(Representation) ` | :ref:`user ` | **Remarks:** | (none) | **Inherited public predicates:** |  :ref:`language_profile_protocol/0::language/1`  :ref:`language_profile_protocol/0::stop_word/1`   .. contents:: :local: :backlinks: top Public predicates ----------------- .. index:: trigram_counts/1 .. _language_profile_common/0::trigram_counts/1: ``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`` ------------ .. index:: trigram_counts/2 .. _language_profile_common/0::trigram_counts/2: ``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 ------------------ .. index:: trigram_counts_/2 .. _language_profile_common/0::trigram_counts_/2: ``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)