Validate a BCP 47 language tag
bcp_validate.RdChecks whether the primary language, script, and region subtags of a BCP 47 tag appear in the IANA Language Subtag Registry. Extension and private-use subtags are not validated.
Arguments
- tag
A character scalar BCP 47 language tag.
- registry
A data frame of the IANA Language Subtag Registry, as returned by
bcp_process_registry(). Defaults to the locally cached registry, falling back to the bundled snapshot if no cache exists.