Skip to content

Main content

Metadata Language Script Pair Tool

Preserve explicit metadata language and script tags without detecting text or consulting a code registry.

Loading tool…

Description

Preserve explicit metadata language and script tags.

Information records distinguish identifiers, controlled vocabularies, language fallbacks, assertion times and valid times. A supplied inverse predicate differs from an inferred semantic relation. Text offsets require an explicit code-point or code-unit basis, and a metadata count check does not validate field content or an entire schema.

Preserve explicit metadata language and script tags.

When to use this tool

Use Metadata Language Script Pair when you already have recordId, suppliedLanguage, suppliedScript and need to preserve explicit metadata language and script tags.

How to use the tool and how it works

  1. Enter recordId, suppliedLanguage, suppliedScript. 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 token. Use the output convention below.

Enter recordId, suppliedLanguage, suppliedScript using the field constraints below. Encode these values, in exactly that order, as a JSON array and return the serialized array as text in token. String values are preserved without trimming or external terminology lookup.1

Input fieldMeaning and unitsAccepted input
recordIdRecord IdRequired. Text; minimum UTF-16 length 1; maximum UTF-16 length 8192.
suppliedLanguageSupplied LanguageRequired. Text; minimum UTF-16 length 1; maximum UTF-16 length 8192.
suppliedScriptSupplied ScriptRequired. Text; minimum UTF-16 length 1; maximum UTF-16 length 8192.
Output fieldInterpretationReturned shape
tokenTokenRequired. Text; maximum UTF-16 length 8192.
json
{
  "input": {
    "recordId": "R17",
    "suppliedLanguage": "en",
    "suppliedScript": "Latn"
  },
  "output": {
    "token": "[\"R17\",\"en\",\"Latn\"]"
  }
}

Limitations and assumptions

  • The result records supplied values without detecting text or consulting a code registry. Sources and asserted relationships are not independently authenticated.
  • Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.

Alternative or Complementary methods

Use the actual record, vocabulary authority and complete metadata schema for semantic or conformance questions. Apply the identifier scheme's real comparison rules and the intended language/offset policy rather than inferring them from a local string operation.

References

  1. Calculation and input contract: information-science/metadata-language-script-pair — tool.io

Similar or alternative tools