map_language()¶
- audformat.utils.map_language(language)[source]¶
Map language to ISO 639-3.
- Parameters
language (
str
) – language string- Return type
- Returns
mapped string
- Raises
ValueError – if language is not supported
Examples
>>> map_language("en") 'eng' >>> map_language("eng") 'eng' >>> map_language("English") 'eng'