Skip to content

Main content

License Expression Plus OR Later Token Tool

Split the legacy SPDX identifier plus marker lexically without asserting membership in a license list.

Loading tool…

Description

Split an identifier's legacy plus-or-later suffix.

License-related tokens can point to a file or express a legacy suffix convention. Lexical recognition does not establish that a license exists, applies to the content or permits a proposed reuse.

Split an identifier's legacy plus-or-later suffix.

When to use this tool

Use License Expression Plus OR Later Token when checking a restricted license-metadata spelling.

How to use the tool and how it works

  1. Enter identifier. 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 base, orLater. Inspect orLater before interpreting the associated values.

Split an identifier's legacy plus-or-later suffix. Require an ASCII alphanumeric start and subsequent alphanumeric/dot/hyphen with optional final plus; return base and orLater.1

Input fieldMeaning and unitsAccepted input
identifierIdentifierRequired. Text; maximum UTF-16 length 8192.
Output fieldInterpretationReturned shape
baseBaseRequired. Text; maximum UTF-16 length 8192.
orLaterOr LaterRequired. Boolean.
json
{
  "input": {
    "identifier": "GPL-2.0+"
  },
  "output": {
    "base": "GPL-2.0",
    "orLater": true
  }
}

Limitations and assumptions

  • This is syntax only, not an SPDX registry lookup, expression parser or licensing determination.
  • 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

Read the actual license and relevant provenance; use a proper SPDX parser for expressions and appropriate advice for legal interpretation.

References

  1. Calculation and input contract: development/license-expression-plus-or-later-token — tool.io

Similar or alternative tools