Utils
Utility modules for use in the GLLM Misc package.
is_valid_language_code(language_code)
Check if a string is a valid ISO 639-1 language code.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
language_code |
str
|
The language code to check. |
required |
Returns:
Name | Type | Description |
---|---|---|
bool |
bool
|
True if the language code is a valid ISO 639-1 code, False otherwise. |