.. index:: single: language_profile_protocol
.. _language_profile_protocol/0:

.. rst-class:: right

**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)

.. contents::
   :local:
   :backlinks: top

Public predicates
-----------------

.. index:: language/1
.. _language_profile_protocol/0::language/1:

``language/1``
^^^^^^^^^^^^^^

Returns the profile ISO 639-1 language code.

| **Compilation flags:**
|    ``static``

| **Template:**
|    ``language(Language)``
| **Mode and number of proofs:**
|    ``language(-atom)`` - ``one``


------------

.. index:: trigram_counts/1
.. _language_profile_protocol/0::trigram_counts/1:

``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``


------------

.. index:: stop_word/1
.. _language_profile_protocol/0::stop_word/1:

``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)

