Skip to content

Main content

Eu Celex Sector Prefix Flag Tool

Compare a supplied CELEX leading sector token with an explicit allowed set; does not validate the document identifier.

Loading tool…

Description

Return its first JavaScript character and exact membership in allowedSectors.

Historical and public-register references combine repositories, series, titles and local identifiers. A syntactic token or hierarchy count helps organize records without authenticating the source or establishing a document's historical or legal meaning.

Return its first JavaScript character and exact membership in allowedSectors.

When to use this tool

Use Eu Celex Sector Prefix Flag when you need a literal archival or public-register record operation.

How to use the tool and how it works

  1. Enter identifier, allowedSectors. 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 prefix, permitted. Inspect permitted before interpreting the associated values.

Require nonempty identifier. Return its first JavaScript character and exact membership in allowedSectors.1

Input fieldMeaning and unitsAccepted input
identifierIdentifierRequired. Text; maximum UTF-16 length 8192.
allowedSectorsAllowed SectorsRequired. Array of text; maximum UTF-16 length 8192; maximum items 256.
Output fieldInterpretationReturned shape
prefixSupplied or returned literal prefix under the stated grammar.Required. Text; maximum UTF-16 length 8192.
permittedPermittedRequired. Boolean.
json
{
  "input": {
    "identifier": "32016R0679",
    "allowedSectors": [
      "0",
      "1",
      "2",
      "3"
    ]
  },
  "output": {
    "prefix": "3",
    "permitted": true
  }
}

Limitations and assumptions

  • Only a supplied prefix vocabulary is checked; this is not full CELEX syntax validation, document retrieval or legal interpretation.
  • 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

Consult the source repository's catalog and description conventions for identity and interpretation. Preserve original references and resolve language, hierarchy and identifier rules before treating a token match as an authenticated record.

References

  1. Calculation and input contract: european-studies/eu-celex-sector-prefix-flag — tool.io

Similar or alternative tools