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
- Enter term, gloss. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- 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 field | Meaning and units | Accepted input |
|---|---|---|
| term | Term | Required. Text; maximum UTF-16 length 8192. |
| gloss | Gloss | Required. Text; maximum UTF-16 length 8192. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| termCodePoints | Term Code Points | Required. Safe integer. |
| glossCodePoints | Gloss Code Points | Required. Safe integer. |
| expansion | Expansion | Required. Finite number. |
| defined | Whether the stated denominator is nonzero; inspect this before using the associated ratio. | Required. Boolean. |
{
"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
Similar or alternative tools
- Excerpt Context Window Offset
Return clipped context bounds around an excerpt.
- Translated Turn Offset
Map a source turn coordinate into translated-turn coordinates.