Skip to content

Main content

Cultural Term Gloss Length Tool

Calculate cultural term gloss length from explicit caller-supplied inputs.

Loading tool…

Description

Return term/gloss code-point lengths and expansion ratio.

Cultural source records can encode exact tokens, voices, time offsets and context budgets. Their literal structure can be summarized without determining authorship, cultural meaning, source authority or adequacy of interpretation.

Return term/gloss code-point lengths and expansion ratio.

When to use this tool

Use Cultural Term Gloss Length when checking a supplied source-context or annotation convention.

How to use the tool and how it works

  1. Enter term, gloss. 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 termCodePoints, glossCodePoints, expansion, defined. Inspect defined before interpreting the associated values.

Return term/gloss code-point lengths and expansion ratio. Count Unicode code points; when term is nonempty, expansion = gloss count/term count, otherwise zero with defined = false.1

Input fieldMeaning and unitsAccepted input
termTermRequired. Text; maximum UTF-16 length 8192.
glossGlossRequired. Text; maximum UTF-16 length 8192.
Output fieldInterpretationReturned shape
termCodePointsTerm Code PointsRequired. Safe integer.
glossCodePointsGloss Code PointsRequired. Safe integer.
expansionExpansionRequired. Finite number.
definedWhether the stated denominator is nonzero; inspect this before using the associated ratio.Required. Boolean.
json
{
  "input": {
    "term": "ab",
    "gloss": "four"
  },
  "output": {
    "termCodePoints": 2,
    "glossCodePoints": 4,
    "expansion": 2,
    "defined": true
  }
}

Limitations and assumptions

  • This measures length, not translation quality, cultural equivalence or authorization.
  • 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

Review the actual sources and relevant participant or community context for substantive interpretation and attribution.

References

  1. Calculation and input contract: cultural-studies/cultural-term-gloss-length — tool.io

Similar or alternative tools