From 29d2090bdbdb439f74185cce4ac3c96e9d9c4377 Mon Sep 17 00:00:00 2001 From: Hagen Wierstorf Date: Thu, 19 Sep 2024 12:27:04 +0200 Subject: [PATCH 1/2] DOC: add link to ISE 639-3 definition --- audformat/core/utils.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/audformat/core/utils.py b/audformat/core/utils.py index da113188..3ad89c9e 100644 --- a/audformat/core/utils.py +++ b/audformat/core/utils.py @@ -1271,6 +1271,12 @@ def map_file_path( def map_language(language: str) -> str: r"""Map language to ISO 639-3. + `ISO 639-3`_ is an international standard for language codes. + It defines three-letter codes for identifying languages, + with an aim to cover all known natural languages. + + .. _ISO 639-3: https://iso639-3.sil.org/code_tables/639/data/ + Args: language: language string From ac67688b5e22e53a8735f310f99cab93e6896bf3 Mon Sep 17 00:00:00 2001 From: Hagen Wierstorf Date: Thu, 19 Sep 2024 14:35:30 +0200 Subject: [PATCH 2/2] Update audformat/core/utils.py Co-authored-by: ChristianGeng --- audformat/core/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/audformat/core/utils.py b/audformat/core/utils.py index 3ad89c9e..16d4fae9 100644 --- a/audformat/core/utils.py +++ b/audformat/core/utils.py @@ -1273,7 +1273,7 @@ def map_language(language: str) -> str: `ISO 639-3`_ is an international standard for language codes. It defines three-letter codes for identifying languages, - with an aim to cover all known natural languages. + with the aim to cover all known languages. .. _ISO 639-3: https://iso639-3.sil.org/code_tables/639/data/