Skip to content

Main content

Quoted Passage Span Share Tool

Calculate quoted passage span share from explicit caller-supplied inputs.

Loading tool…

Description

Return a half-open quotation's share of a supplied source length.

Comparative-literature annotations connect editions, passages, speakers, structural frames and count units. Literal keys and normalized lengths can support consistent records while textual meaning, translation fidelity and bibliographic authority remain matters for source-aware editorial analysis.

Return a half-open quotation's share of a supplied source length.

When to use this tool

Use Quoted Passage Span Share when checking a supplied literary annotation, cross-edition offset or count convention.

How to use the tool and how it works

  1. Enter quotedStart, quotedEnd, sourceLength. 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 length, share. Use the output convention below.

Return a half-open quotation's share of a supplied source length. Require whole sourceLength >= 1 and 0 <= quotedStart <= quotedEnd <= sourceLength; length = end-start, share = length/source.1

Input fieldMeaning and unitsAccepted input
quotedStartQuoted StartRequired. Safe integer; minimum 0.
quotedEndQuoted EndRequired. Safe integer.
sourceLengthSource LengthRequired. Safe integer; minimum 1.
Output fieldInterpretationReturned shape
lengthLengthRequired. Safe integer.
shareDimensionless numerator/denominator ratio under the explicit basis above.Required. Finite number.
json
{
  "input": {
    "quotedStart": 10,
    "quotedEnd": 30,
    "sourceLength": 100
  },
  "output": {
    "length": 20,
    "share": 0.2
  }
}

Limitations and assumptions

  • The coordinate unit must match; this does not establish quotation fidelity, adequate context, attribution or lawful reuse.
  • 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

Inspect the source editions and their annotation/counting policy for substantive literary, translation or provenance conclusions.

References

  1. Calculation and input contract: comparative-literature/quoted-passage-span-share — tool.io

Similar or alternative tools