Skip to content

Main content

BCP 47 Private Use Tail Token Tool

Compute bcp 47 private use tail token from explicit bounded inputs.

Loading tool…

Description

Extract a private-use tail after the first x subtag under a limited language-tag shape rule.

Identifier validation can involve several distinct questions: whether text has the expected shape, whether a checksum is consistent, and whether an authority actually assigned the identifier. Formatting and field extraction address narrower questions. Each result must be read according to the particular property the tool checks.

Extract a private-use tail after the first x subtag under a limited language-tag shape rule.

When to use this tool

Use BCP 47 Private Use Tail Token when you need the particular shape, formatting, field, or checksum property as one explicit stage in an identifier workflow.

How to use the tool and how it works

  1. Enter tag. Use the units and conventions below.
  2. Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
  3. Read privateUse, present. Inspect present before interpreting the associated values.

Require nonempty hyphen-separated ASCII alphanumeric parts. Find the first part equal to x ignoring case; if present require at least one following part and each remaining part no longer than eight characters. Return privateUse and present.1

Input fieldMeaning and unitsAccepted input
tagTagRequired. Text; maximum UTF-16 length 8192.
Output fieldInterpretationReturned shape
privateUsePrivate UseRequired. Array of Text; maximum UTF-16 length 8192.; maximum items 256.
presentPresentRequired. Boolean.
json
{
  "input": {
    "tag": "en-US-x-acme"
  },
  "output": {
    "privateUse": [
      "acme"
    ],
    "present": true
  }
}

Limitations and assumptions

  • The prefix before x is not fully validated as BCP 47 and private-use text preserves case. The tool does not consult a language registry or assign interoperable meaning to private subtags.
  • The field tables state structural bounds; the mechanics also specify cross-field constraints. Malformed inputs and unsupported domains cause errors. A successful false flag, empty branch value, or zero placeholder has the meaning stated above and is distinct from an input error.

Alternative or Complementary methods

Use a complete format and checksum validator when required, then consult the issuing registry or verification process for assignment and identity. Preserve meaningful leading zeros as text.

References

  1. Calculation and input contract: validate/bcp47-private-use-tail-token — tool.io

Similar or alternative tools