Page
Library
Module
Module type
Parameter
Class
Class type
Source
Iso639.Lang_family
SourceLanguage families and groups as identified by ISO 639-5.
ISO 639-5 defines language codes for selected language groups and families. A few of these are also present in ISO 639-1 and 639-2. This module defines an abstract type covering these language families and groups, and provides conversions to the relevant language codes.
Remainder groups of ISO 639-2 are not distinguished from the corresponding complete groups of ISO 639-5.
A representation of language families and groups in ISO 639-5.
pp ppf lang
prints the ISO 639-5 language code of lang
on ppf
.
Injection into the combined ISO 639 type.
Restriction from the combined ISO 639 type.
of_string s
is the language family or group represented by the ISO 639-5 code s
.
of_string_exn s
is the language family or group represented by the ISO 639-5 code s
.
to_iso639p1 lang
is the ISO 693-1 language code of lang
, if it exists.
of_iso639p1 s
is the language represented by the ISO 639-1 language code s
.
to_iso639p2t lang
is the ISO 639-2T language code of lang
, if it exists.
to_iso639p2b lang
is the ISO 639-2B language code of lang
, if it exists.