Description
Count distinct eligible and supporting witnesses.
Digital editions connect textual witnesses, anchors, page images and source-specific labels. Literal identifier agreement and numerical offsets preserve a supplied convention without proving textual authority, complete coverage or correct editorial interpretation.
Count distinct eligible and supporting witnesses.
When to use this tool
Use TEI Witness Support Count when checking supplied edition identifiers, ordering or coordinate conventions.
How to use the tool and how it works
- Enter witnessIds, readingIds, selectedReading, omittedWitnesses. Keep parallel arrays aligned. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read eligibleWitnesses, supportingWitnesses. Use the output convention below.
Count distinct eligible and supporting witnesses. Require aligned witnessIds/readingIds; exclude omittedWitnesses, deduplicate IDs and count witnesses having at least one selectedReading record.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| witnessIds | Witness Ids | Required. Array of text; maximum UTF-16 length 8192; maximum items 256. |
| readingIds | Reading Ids | Required. Array of text; maximum UTF-16 length 8192; maximum items 256. |
| selectedReading | Selected Reading | Required. Text; maximum UTF-16 length 8192. |
| omittedWitnesses | Omitted Witnesses | Required. Array of text; maximum UTF-16 length 8192; maximum items 256. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| eligibleWitnesses | Eligible Witnesses | Required. Safe integer. |
| supportingWitnesses | Supporting Witnesses | Required. Safe integer. |
{
"input": {
"witnessIds": [
"w1",
"w1",
"w2"
],
"readingIds": [
"a",
"b",
"a"
],
"selectedReading": "a",
"omittedWitnesses": [
"w2"
]
},
"output": {
"eligibleWitnesses": 1,
"supportingWitnesses": 1
}
} Limitations and assumptions
- A witness can have conflicting records yet count as supporting; no textual stemma or source independence is 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
Inspect the original edition and its encoding model before treating local record agreement as meaningful textual or historical evidence.
References
Similar or alternative tools
- TEI Zone Reading Order Gap
Audit a supplied zone reading order against unique zone IDs.
- TEI Locus Line Token
Split a locus-line reference at its final literal separator.