Files
paperspec/schemas/suspect.schema.json
T
alexmandClaude 3836a6c885 feat: alignment pairs a misread sentence with its other reading; a suspect names its witness
spec/05 §5.6 gains a substitution step: an unpaired sentence beside one at
least 0.8 alike (2L/(|a|+|b|) over the lossy projections' code points) is
paired with it, so a misread is one number, equation or word suspect rather
than a dropped and an added one. §5.7 and suspect.schema.json gain an
optional `witness`, checked by doc.suspect.witness. alignment.jsonl gains a
`substitutions` case; the first case is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 22:41:15 -04:00

81 lines
1.4 KiB
JSON

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://paperspec.scient.ing/schemas/suspect.schema.json",
"title": "Suspect",
"description": "scienting-suspect/1: a doubtful reading for review; spec/05-hashes.md.",
"type": "object",
"properties": {
"format": {
"const": "scienting-suspect/1"
},
"id": {
"$ref": "common.schema.json#/$defs/recordId"
},
"kind": {
"enum": [
"word",
"number",
"equation",
"structure",
"join",
"added",
"dropped",
"boundary",
"reading"
]
},
"node": {
"anyOf": [
{
"$ref": "common.schema.json#/$defs/nodeId"
},
{
"type": "null"
}
]
},
"reading": {
"type": "string",
"minLength": 1
},
"a": {
"anyOf": [
{
"type": "string",
"minLength": 1
},
{
"type": "null"
}
]
},
"b": {
"anyOf": [
{
"type": "string",
"minLength": 1
},
{
"type": "null"
}
]
},
"witness": {
"$ref": "common.schema.json#/$defs/nodeId"
},
"crop": {
"$ref": "common.schema.json#/$defs/hash"
},
"note": {
"type": "string",
"minLength": 1
}
},
"required": [
"format",
"id",
"kind"
],
"additionalProperties": false
}