Skip to content

Main content

Authorized Excerpt Length Gap Tool

Compare an explicitly authorized excerpt against a supplied code-point limit without determining permission.

Loading tool…

Description

Count Unicode code points in excerpt and subtract used from nonnegative integer authorizedCodePointLimit for gap.

Cultural and community records can carry access, attribution, quotation, and publication permissions. Preserving a supplied label does not create permission or override community protocols, source conditions, or an individual's stated preferences.

Count Unicode code points in excerpt and subtract used from nonnegative integer authorizedCodePointLimit for gap.

When to use this tool

Use Authorized Excerpt Length Gap when you need to record a supplied attribution or access statement without expanding its scope.

How to use the tool and how it works

  1. Enter excerpt, authorizedCodePointLimit. 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 used, gap. Use the output convention below.

Count Unicode code points in excerpt and subtract used from nonnegative integer authorizedCodePointLimit for gap.1

Input fieldMeaning and unitsAccepted input
excerptExcerptRequired. Text; maximum UTF-16 length 8192.
authorizedCodePointLimitAuthorized Code Point LimitRequired. Safe integer; minimum 0.
Output fieldInterpretationReturned shape
usedUsedRequired. Safe integer.
gapSigned difference under the stated subtraction order.Required. Safe integer.
json
{
  "input": {
    "excerpt": "A🚀",
    "authorizedCodePointLimit": 5
  },
  "output": {
    "used": 2,
    "gap": 3
  }
}

Limitations and assumptions

  • Combining marks count separately, so this is not a grapheme count. A supplied limit and a nonnegative gap do not establish quotation or publication rights.
  • 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.
  • Numeric calculations use binary floating point unless exact decimal-integer arithmetic is explicitly stated. No hidden measurement tolerance or decimal rounding is added; nonfinite or out-of-contract results are rejected. Numeric signed-zero results are exported as zero.

Alternative or Complementary methods

Confirm the original permission, community protocol, and intended use with the responsible people before sharing material.

References

  1. Calculation and input contract: indigenous-studies/authorized-excerpt-length-gap — tool.io

Similar or alternative tools