Description
Return expanded quotation length and budget slack.
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 expanded quotation length and budget slack.
When to use this tool
Use Quotation Context Expansion Budget when checking a supplied source-context or annotation convention.
How to use the tool and how it works
- Enter quoteUnits, beforeUnits, afterUnits, maximumUnits. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read expandedUnits, remaining, fits. Inspect fits before interpreting the associated values.
Return expanded quotation length and budget slack. Require nonnegative whole quoteUnits/beforeUnits/afterUnits/maximumUnits; expandedUnits sums the three, remaining subtracts from maximum, fits includes equality.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| quoteUnits | Quote Units | Required. Safe integer; minimum 0. |
| beforeUnits | Before Units | Required. Safe integer; minimum 0. |
| afterUnits | After Units | Required. Safe integer; minimum 0. |
| maximumUnits | Maximum Units | Required. Safe integer; minimum 0. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| expandedUnits | Expanded Units | Required. Safe integer. |
| remaining | Budget minus use, in the same units; a negative value indicates excess use. | Required. Safe integer. |
| fits | Whether the calculated use is no greater than the supplied budget. | Required. Boolean. |
{
"input": {
"quoteUnits": 100,
"beforeUnits": 20,
"afterUnits": 30,
"maximumUnits": 180
},
"output": {
"expandedUnits": 150,
"remaining": 30,
"fits": true
}
} Limitations and assumptions
- Unit convention and context adequacy are supplied; this does not establish quotation rights or sufficient attribution.
- 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
Review the actual sources and relevant participant or community context for substantive interpretation and attribution.
References
Similar or alternative tools
- Source Term Context Count
Locate exact target tokens and count their bounded context windows.
- Excerpt Context Window Offset
Return clipped context bounds around an excerpt.