Description
Map dateLabels into its indices, count recognized and unrecognized labels, and require strictly increasing recognized positions for hierarchyConsistent.
Manuscript and inscription tokens depend on editorial conventions for folios, sides, lacunae, and date labels. Parsing a convention preserves structure without interpreting the source text.
Map dateLabels into its indices, count recognized and unrecognized labels, and require strictly increasing recognized positions for hierarchyConsistent.
When to use this tool
Use Public Colophon Date Label Depth when you need a caller-defined manuscript notation or layout check.
How to use the tool and how it works
- Enter dateLabels, suppliedOrder. 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 recognized, unrecognized, hierarchyConsistent. Inspect hierarchyConsistent before interpreting the associated values.
Require a duplicate-free suppliedOrder. Map dateLabels into its indices, count recognized and unrecognized labels, and require strictly increasing recognized positions for hierarchyConsistent.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| dateLabels | Date Labels | Required. Array of text; maximum UTF-16 length 8192; maximum items 256. |
| suppliedOrder | Supplied Order | Required. Array of text; maximum UTF-16 length 8192; maximum items 256. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| recognized | Recognized | Required. Safe integer. |
| unrecognized | Unrecognized | Required. Safe integer. |
| hierarchyConsistent | Hierarchy Consistent | Required. Boolean. |
{
"input": {
"dateLabels": [
"year",
"day"
],
"suppliedOrder": [
"year",
"month",
"day"
]
},
"output": {
"recognized": 2,
"unrecognized": 0,
"hierarchyConsistent": true
}
} Limitations and assumptions
- The hierarchy is caller defined; no calendar or colophon interpretation is performed. An empty label list is consistent by the implemented all-items test.
- 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
Consult the edition's transcription and foliation policy and inspect the source image for textual interpretation.
References
Similar or alternative tools
- Persian Date Era Marker
Require nonempty eraMarker and expectedMarker, compare them exactly, and preserve dateToken with eraMarker in a serialized pair.
- Manuscript Folio Side Token
Strip prefix and, unless pagination is true, require exactly one matching recto or verso suffix.