Namespace: types

utilities. types

Type-checking methods for various kinds of linguistic data and formats

Methods


isAbbreviation(input)

Checks whether the input is a valid abbreviation.

Parameters:
Name Type Description
input Any

The input to check

Returns:
Type
Boolean

isGlottoCode(input)

Checks whether the input is a valid Glottolog language code.

Parameters:
Name Type Description
input Any

The input to check

Returns:
Type
Boolean

isISOCode(input)

Checks whether the input is a valid ISO 639-3 language code.

Parameters:
Name Type Description
input Any

The input to check

Returns:
Type
Boolean

isLanguageTag(input)

Checks whether the input is a valid IETF language tag.

Parameters:
Name Type Description
input Any

The input to check

Returns:
Type
Boolean