Skip to content

Main content

Dialogue Turn Word Share Tool

Count supplied dialogue word allocations without tokenizing text or inferring narrative importance.

Loading tool…

Description

Return one speaker's supplied dialogue-word share.

Story planning separates the order of telling from fictional chronology, continuity records and practical writing budgets. Explicit labels, counts and invented calendar rules can make a local convention consistent without deciding narrative quality or inferring facts from manuscript prose.

Return one speaker's supplied dialogue-word share.

When to use this tool

Use Dialogue Turn Word Share when checking a supplied story-continuity, chronology, calendar or drafting-budget convention.

How to use the tool and how it works

  1. Enter speakerIds, wordCounts, targetSpeaker. Keep parallel arrays aligned. 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 targetWords, allWords, share, defined. Inspect defined before interpreting the associated values.

Return one speaker's supplied dialogue-word share. Require aligned speakerIds/wordCounts and nonnegative counts; sum all words and matching speaker words, divide when total positive, otherwise zero with defined false.1

Input fieldMeaning and unitsAccepted input
speakerIdsSpeaker IdsRequired. Array of text; maximum UTF-16 length 8192; maximum items 256.
wordCountsWord CountsRequired. Array of safe integer; maximum items 256.
targetSpeakerTarget SpeakerRequired. Text; maximum UTF-16 length 8192.
Output fieldInterpretationReturned shape
targetWordsTarget WordsRequired. Safe integer.
allWordsAll WordsRequired. Safe integer.
shareDimensionless numerator/denominator ratio under the explicit basis above.Required. Finite number.
definedWhether the stated denominator or information basis permits interpretation of the associated value; inspect before using a placeholder.Required. Boolean.
json
{
  "input": {
    "speakerIds": [
      "A",
      "B",
      "A"
    ],
    "wordCounts": [
      10,
      20,
      30
    ],
    "targetSpeaker": "A"
  },
  "output": {
    "targetWords": 40,
    "allWords": 60,
    "share": 0.6666666666666666,
    "defined": true
  }
}

Limitations and assumptions

  • Literal speaker labels and counts are supplied; dialogue importance or actual manuscript tokenization is not inferred.
  • 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

Use the manuscript, scene outline and the chosen style/calendar policy for a complete editorial review; interpret numerical budgets in their narrative context.

References

  1. Calculation and input contract: creative-writing/dialogue-turn-word-share — tool.io

Similar or alternative tools