Description
Compare source and allusion-anchor paths by literal shared prefix.
Comparative-literature annotations connect editions, passages, speakers, structural frames and count units. Literal keys and normalized lengths can support consistent records while textual meaning, translation fidelity and bibliographic authority remain matters for source-aware editorial analysis.
Compare source and allusion-anchor paths by literal shared prefix.
When to use this tool
Use Allusion Source Anchor Depth when checking a supplied literary annotation, cross-edition offset or count convention.
How to use the tool and how it works
- Enter sourcePath, anchorPath. 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 commonDepth, remainingAnchorDepth, sourceIsPrefix. Inspect sourceIsPrefix before interpreting the associated values.
Compare source and allusion-anchor paths by literal shared prefix. Count equal leading components, return commonDepth and anchor length minus that depth, and flag sourceIsPrefix when all source components match.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| sourcePath | Source Path | Required. Array of text; maximum UTF-16 length 8192; maximum items 256. |
| anchorPath | Anchor Path | Required. Array of text; maximum UTF-16 length 8192; maximum items 256. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| commonDepth | Common Depth | Required. Safe integer. |
| remainingAnchorDepth | Remaining Anchor Depth | Required. Safe integer. |
| sourceIsPrefix | True when all source components match the anchor prefix; empty source path also qualifies. | Required. Boolean. |
{
"input": {
"sourcePath": [
"book",
"chapter"
],
"anchorPath": [
"book",
"chapter",
"line"
]
},
"output": {
"commonDepth": 2,
"remainingAnchorDepth": 1,
"sourceIsPrefix": true
}
} Limitations and assumptions
- An empty source path is a prefix by convention; bibliographic identity, actual allusion and source authority are not established.
- 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 source editions and their annotation/counting policy for substantive literary, translation or provenance conclusions.
References
Similar or alternative tools
- Narrative Frame Depth Single Shift
Apply one narrative-frame enter, leave or stay action.
- Narrator Frame Depth Change
Update narrator-frame depth from supplied opens and closes.