Skip to main content

Module text_span

Module text_span 

Source
Expand description

Byte-span annotations for document → Quin provenance (P6).

UTF-8 offsets are canonical. Content hash is FNV-1a 60-bit (lexicon).

Structs§

TextSpan
Inclusive-exclusive UTF-8 byte range into a source document.

Constants§

SPAN_ANNOTATES
Predicate for “this Quin is an annotation of a source span”.

Functions§

annotation_quin
Build a sealed annotation Quin: subject = term, predicate = annotatesSpan, object packs start<<32|end (fits documents under 4 GiB), context = content hash.