Skip to main content

Paragraph Entity Ontology

Token and Language Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 01 November 2026
Audio Overview
SEMANTIC LIBRARY — PARAGRAPH ENTITY ONTOLOGY
FLOW ALGEBRA COMPANION FORMALISATION v1.0
Date: 2026-11-01
Source: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/token-and-language-entities/paragraph-entity-ontology.html
Status: Original companion formalisation; not a verified transcription of source page.
Authors: Mark Higgins; Sky — Recursive AI (AI collaboration)
Licence note: Cite the original Semantic Library source when reusing its concepts; verify applicable published licence terms.

01. PURPOSE
Represent a paragraph as an ordered, bounded discourse unit containing zero or more sentences and associated semantic relations. Distinguish its literal text, structural boundaries, meaning, context and provenance.

02. ENTITY DEFINITION
P = (id, text, S, B, O, C, M, R, Prov)
S: ordered sentence entities; B: boundaries; O: order; C: discourse context; M: semantic representation; R: relations; Prov: provenance.

03. STATE MODEL
X_t = (I_t, R_t, B_t, K_t)
I_t = paragraph input and observed tokens
R_t = segmentation, ordering and semantic rules
B_t = document, language and trust boundaries
K_t = available linguistic and document knowledge

04. CORE FLOW
E_t = expand(I_t, R_t)
V_t = {x in E_t | valid(x, B_t, K_t)}
x*_t = argmax[x in V_t] P(x | I_t, R_t, B_t, K_t)
I_(t+1) = update(I_t, x*_t, feedback_t)
If V_t is empty, return an explicit unresolved state rather than inventing a paragraph interpretation.

05. INPUT CONTRACT
Input = (document_id, raw_text, offsets, encoding, language_hint, source, timestamp)
Preserve source offsets and distinguish inferred from observed fields.

06. PARAGRAPH BOUNDARIES
B(P) = (start_offset, end_offset, separator_type, container_id)
Require 0 <= start_offset <= end_offset <= document_length.
Blank lines, markup tags and layout cues are evidence, not universal paragraph definitions.

07. SENTENCE ORDER
S(P) = [s_1, s_2, ..., s_n]
order(s_i) = i; span(s_i) subseteq span(P)
Sentence segmentation may be uncertain for abbreviations, headings and lists.

08. TOKEN RELATIONSHIP
T(P) = concat(T(s_1), ..., T(s_n)) subject to whitespace and punctuation preservation.
Token boundaries and sentence boundaries need not align one-to-one.

09. DISCOURSE COHERENCE
Coh(P) = weighted_consistency(topic, referents, connectives, semantic_relations)
Coh is a model-specific score, not a guarantee of factual correctness.

10. SEMANTIC REPRESENTATION
M(P) = encode(text(P), context(P), model_version)
Record representation type and version. An embedding is not identical to the paragraph's meaning.

11. RELATIONSHIP GRAPH
Nodes: document, paragraph, sentence, token, topic, proposition, entity, source.
Edges: contains, precedes, follows, mentions, elaborates, contrasts, supports, cites.
Relations require evidence or an explicitly labelled inference.

12. TRI-MAPPING
Linguistic: paragraph -> sentences -> tokens
Semantic: paragraph -> propositions -> concepts
Computational: text span -> parsed structure -> indexed representation

13. MAPPING TABLE
Raw document span | Paragraph entity | Boundary extraction
Sentence span | Sentence entity | Ordered containment
Token ID | Token entity | Vocabulary reference
Discourse link | Relationship entity | Typed evidence
Source URI | Provenance entity | Traceability

14. INFERENCE RULES
IF a sentence span lies within paragraph span THEN candidate_contains(P,s).
IF two paragraphs share a document and have adjacent non-overlapping spans THEN candidate_precedes(P1,P2).
IF a claim is inferred from text THEN label inferred, not source-asserted.
IF boundaries conflict THEN retain alternatives and mark uncertainty.

15. MINI-RECURSION ENGINE
function paragraph_flow(input, depth, max_depth):
  if depth >= max_depth: return bounded_result(input)
  candidates = segment(input)
  valid_candidates = filter_by_boundaries(candidates)
  if empty(valid_candidates): return unresolved(input)
  best = rank(valid_candidates, context=input.context)
  if needs_refinement(best): return paragraph_flow(refine(best), depth+1, max_depth)
  return best

16. IMPLEMENTATION
Normalise encoding without destroying the original text.
Capture source offsets, parser version and language.
Segment paragraphs and sentences; retain uncertainty.
Link tokens, sentences, paragraphs and document nodes.
Validate structural invariants and store provenance.

17. HOW TO READ THE FLOW
I = observed paragraph input; R = processing rules; B = allowed boundaries; K = supporting knowledge.
expand proposes analyses; valid filters them; argmax ranks remaining candidates; update incorporates verified feedback.

18. DIAGRAM
Document input
  -> paragraph boundary candidates
  -> sentence/token alignment
  -> structural validation
  -> semantic/discourse mapping
  -> provenance and relationship graph
  -> indexed paragraph entity
  -> feedback / revision

19. EXECUTION CONDITIONS
Conditional guarantee only: if parsing terminates, inputs are well-formed and validators are implemented, the engine returns a validated candidate or an explicit unresolved result. It does not guarantee perfect segmentation, meaning or truth.

20. AI SEARCH FLOW
QUERY -> INTENT -> RETRIEVE paragraph candidates -> CHECK provenance
-> FILTER by scope and relevance -> RANK evidence -> ANSWER with citations
-> RECORD uncertainty -> UPDATE on verified feedback.

21. EXAMPLE
Text: "The sensor warmed up. Its readings then stabilised."
Paragraph P1 contains S1 and S2, ordered S1 < S2.
Possible discourse relation: S2 follows S1 temporally.
Do not infer that warming caused stabilisation without additional evidence.

22. QUALITY CHECKS
No overlapping paragraph spans within a single segmentation version unless explicitly permitted.
Every sentence has a valid parent paragraph or an explicit orphan status.
Every inferred relationship carries confidence and evidence.
Every transformed record retains source and model/parser version.

23. LIMITATIONS
Paragraph structure varies across languages, poetry, tables, HTML and OCR text.
Semantic embeddings may be biased or lossy; discourse interpretation can be ambiguous.

24. RELATED ONTOLOGIES
Sentence Entity; Token Sequence; Text Token; Token Identifier; Tokenisation Entity; Vocabulary; Prompt Context Block; Retrieved Knowledge Input.

25. CITATION AND STATUS
Companion Flow Algebra authored for the Semantic Library project. This file is not a reproduction or verification of the linked webpage's full ontology content.
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ