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
- Enter speakers. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- 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 field | Meaning and units | Accepted input |
|---|---|---|
| speakers | Speakers | Required. Array of text; maximum UTF-16 length 8192; maximum items 256. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| changes | Changes | Required. Safe integer. |
| runSpeakers | Run Speakers | Required. Array of text; maximum UTF-16 length 8192; maximum items 256. |
{
"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
Similar or alternative tools
- Metrical Foot Symbol Count
Count metrical symbols recognized by a supplied vocabulary.
- Narrator Frame Depth Change
Update narrator-frame depth from supplied opens and closes.