Description
Count all forms or only strings of positive length according to emptyIsMissing; return missingRequired and extraSlots as nonnegative differences.
Survey display order, self-description, missingness, and record support are distinct research properties. Literal tokens and counts can preserve those distinctions without inferring a person's identity, preferences, or the meaning of an unprovided response.
Count all forms or only strings of positive length according to emptyIsMissing; return missingRequired and extraSlots as nonnegative differences.
When to use this tool
Use Pronoun Form Slot Count when you need a transparent survey-record, display-order, or time-use calculation.
How to use the tool and how it works
- Enter forms, requiredSlots, emptyIsMissing. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read recordedSlots, missingRequired, extraSlots. Use the output convention below.
Require nonnegative integer requiredSlots. Count all forms or only strings of positive length according to emptyIsMissing; return missingRequired and extraSlots as nonnegative differences.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| forms | Forms | Required. Array of text; maximum UTF-16 length 8192; maximum items 256. |
| requiredSlots | Required Slots | Required. Safe integer; minimum 0. |
| emptyIsMissing | Empty Is Missing | Required. Boolean. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| recordedSlots | Recorded Slots | Required. Safe integer. |
| missingRequired | Missing Required | Required. Safe integer. |
| extraSlots | Extra Slots | Required. Safe integer. |
{
"input": {
"forms": [
"they",
"them",
""
],
"requiredSlots": 3,
"emptyIsMissing": true
},
"output": {
"recordedSlots": 2,
"missingRequired": 1,
"extraSlots": 0
}
} Limitations and assumptions
- Whitespace-only strings count as recorded. This is slot accounting, not grammatical validation, identity inference, or a requirement that anyone supply particular pronoun forms.
- 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
Use the study's consent, vocabulary, missingness, and disclosure methodology for interpretation. Retain self-described information and assess sampling and privacy separately from local record arithmetic.
References
Similar or alternative tools
- Survey Self Description Missingness
For each response, optionally apply JavaScript trim before comparing it exactly with the supplied missingTokens.
- Survey Self Description Opt Out Distinction
Compare response exactly with each, returning opted-out, missing, or self-described; retain the response only for the last state and otherwise return an empty string.