Skip to content

Main content

Dramatic Line Speaker Change Count Tool

Calculate dramatic line speaker change count from explicit caller-supplied inputs.

Loading tool…

Description

Count literal speaker changes and return speaker runs.

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.

Count literal speaker changes and return speaker runs.

When to use this tool

Use Dramatic Line Speaker Change Count when checking a supplied literary annotation, cross-edition offset or count convention.

How to use the tool and how it works

  1. Enter speakers. 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 changes, runSpeakers. Use the output convention below.

Count literal speaker changes and return speaker runs. Keep the first label of each contiguous run; changes = max(0,runCount-1).1

Input fieldMeaning and unitsAccepted input
speakersSpeakersRequired. Array of text; maximum UTF-16 length 8192; maximum items 256.
Output fieldInterpretationReturned shape
changesChangesRequired. Safe integer.
runSpeakersRun SpeakersRequired. Array of text; maximum UTF-16 length 8192; maximum items 256.
json
{
  "input": {
    "speakers": [
      "A",
      "A",
      "B",
      "A"
    ]
  },
  "output": {
    "changes": 2,
    "runSpeakers": [
      "A",
      "B",
      "A"
    ]
  }
}

Limitations and assumptions

  • Speakers are supplied labels, not inferred dialogue attribution; identity aliases and actual text are not analyzed.
  • 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

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

References

  1. Calculation and input contract: comparative-literature/dramatic-line-speaker-change-count — tool.io

Similar or alternative tools