Skip to content

Main content

Syllable Window Valid Share Tool

Calculate syllable window valid share from explicit caller-supplied inputs.

Loading tool…

Description

Count positions both valid and included and divide by includedCount, using zero with defined false when no entries are included.

Speech and language research can use periods, samples, utterances, phoneme tokens, transcript labels, and timed observations. Counts and durations give different denominators, while missing or unscorable records need an explicit policy. Arithmetic on these annotations does not itself establish a validated clinical measure.

Count positions both valid and included and divide by includedCount, using zero with defined false when no entries are included.

When to use this tool

Use Syllable Window Valid Share when you need the stated acoustic, annotation, timing, or record-support calculation for supplied research data.

How to use the tool and how it works

  1. Enter valid, included. 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 validIncluded, includedCount, share, defined. Inspect defined before interpreting the associated values.

Count positions both valid and included and divide by includedCount, using zero with defined false when no entries are included. Require aligned boolean arrays.1

Input fieldMeaning and unitsAccepted input
validWhether this tool’s specific rule passes, not a broader approval.Required. Array of boolean; maximum items 256.
includedIncludedRequired. Array of boolean; maximum items 256.
Output fieldInterpretationReturned shape
validIncludedValid IncludedRequired. Safe integer.
includedCountIncluded CountRequired. Safe integer.
shareDimensionless fraction using the stated denominator; not a percentage numeral.Required. Finite number.
definedWhether the stated denominator or quantity is defined; inspect before interpreting a placeholder.Required. Boolean.
json
{
  "input": {
    "valid": [
      true,
      false
    ],
    "included": [
      true,
      true
    ]
  },
  "output": {
    "validIncluded": 1,
    "includedCount": 2,
    "share": 0.5,
    "defined": true
  }
}

Limitations and assumptions

  • This is a count-based annotation share, not duration weighting. Flags are supplied and do not establish syllable correctness, segmentation quality, or a clinical outcome.
  • The field tables state structural bounds; the mechanics also specify cross-field constraints. Malformed inputs and unsupported domains cause errors. A successful false flag, empty branch value, or zero placeholder has the meaning stated above and is distinct from an input error.
  • 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. Signed zero is exported as zero.

Alternative or Complementary methods

Use validated acoustic extraction and annotation procedures for the intended research task. A clinical interpretation needs an appropriate assessment method beyond this supplied-data calculation.

References

  1. Calculation and input contract: speech-therapy/syllable-window-valid-share — tool.io

Similar or alternative tools