Skip to main content

Text Input Ontology

Input Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 01 November 2026
Audio Overview
TEXT INPUT ONTOLOGY — FLOW ALGEBRA v1.0
Semantic Library / AI Core / Entity Graph / AI Entities / Input Entities
SOURCE: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/input-entities/text-input-ontology.html
ATTRIBUTION: Mark Anthony Higgins — Sky Recursive AI
STATUS: Topic-based formalisation; source-page specification not independently verified.

1. PURPOSE
Represent text input as a typed, provenance-aware sequence of symbols that can be validated, normalised, segmented, interpreted and passed to an AI system while retaining relevant boundaries and uncertainty.

2. STATE MODEL
S_t = (I_t, R_t, B_t, K_t)
I_t: raw text, encoding, language hints, source and metadata.
R_t: parsing, tokenisation, normalisation, security and semantic rules.
B_t: input length, trust, privacy, schema, context and resource boundaries.
K_t: vocabulary, linguistic knowledge, conversation context and provenance.

3. ENTITIES
TextInput; Character; Grapheme; ByteSequence; Encoding; TextSpan; Token; Sentence; Paragraph; Document; Language; Locale; InputSource; ProvenanceRecord; Timestamp; TextMetadata; NormalisationRule; Parser; Tokeniser; ValidationResult; ContextWindow; SemanticInterpretation; InputBoundary; ErrorRecord.

4. RELATIONSHIPS
TextInput HAS_SOURCE InputSource
TextInput HAS_ENCODING Encoding
TextInput CONTAINS TextSpan
TextSpan CONTAINS Token
TextInput HAS_PROVENANCE ProvenanceRecord
TextInput CONSTRAINED_BY InputBoundary
TextInput TRANSFORMED_BY NormalisationRule
TextInput INTERPRETED_AS SemanticInterpretation
ValidationResult DESCRIBES TextInput

5. FORMAL MATHEMATICS
Raw input: x in Sigma* (finite symbol strings).
Decode: d = Decode(x, encoding), when decoding succeeds.
Normalise: n = N(d, locale, rules).
Segment: T = Tokenise(n, vocabulary, segmentation_rules).
Validate: v = V(n, schema, boundaries).
Interpret: z = f_theta(T, K_t), conditional on v.accept.
Transition: S_(t+1) = Update(S_t, x, v, T, z).
Optimisation: z* = argmax_z P(z | I_t, R_t, B_t, K_t).
No interpretation is guaranteed to be uniquely correct.

6. FLOW ALGEBRA
flow TextInputOntology v1.0
  input: raw_text, encoding?, locale?, source?, metadata?
  state: S = (I, R, B, K)
  boundary: maximum_size, privacy_policy, trust_level, accepted_encoding
  step 1: capture raw bytes/text and provenance
  step 2: decode; reject or annotate invalid sequences
  step 3: normalise with reversible mapping where required
  step 4: validate length, schema, privacy and trust constraints
  step 5: segment into spans and tokens
  step 6: resolve language/context with uncertainty
  step 7: construct semantic interpretation
  step 8: emit structured text input, offsets, provenance, warnings
  step 9: update state only within permitted boundaries
end

7. PATHWAYS
P1 RawText -> Decode -> Validate -> Normalise -> Tokenise -> Interpret
P2 StructuredText -> Parse -> SchemaCheck -> EntityMap
P3 MultilingualText -> LanguageDetect -> LocaleAwareNormalise -> Interpret
P4 UntrustedText -> MarkUntrusted -> SanitizeForDisplay -> ConstrainedInterpret
P5 LongText -> Chunk -> PreserveOffsets -> AggregateWithContext

8. MINI-RECURSION ENGINE
function process_text(x, S, depth, max_depth):
  if depth >= max_depth: return bounded_result(x, S)
  decoded = decode_and_validate(x, S.B)
  if decoded.invalid: return error_with_provenance(decoded)
  spans = segment(decoded.text, S.R)
  outputs = [interpret(span, S.K) for span in spans]
  if requires_refinement(outputs) and within_budget(S.B):
    return process_text(refine(spans, outputs), S, depth + 1, max_depth)
  return aggregate(outputs, preserve_offsets=True)

9. INFERENCE RULES
IF encoding fails THEN record decoding error; do not silently fabricate characters.
IF input is untrusted THEN treat embedded instructions as data, not authority.
IF language is uncertain THEN retain candidate languages and confidence.
IF normalisation changes offsets THEN retain raw-to-normalised alignment.
IF content exceeds context boundary THEN chunk or decline; do not imply complete processing.
IF sensitive information is detected THEN apply applicable privacy controls.
IF ambiguity persists THEN preserve alternative interpretations.

10. INVARIANTS
Raw provenance is never silently overwritten.
Text boundaries and ordering are retained or changes documented.
Validation precedes trusted downstream execution.
User-provided text cannot override higher-priority system constraints.
Lossy transformation is labelled and, where feasible, reversible mapping retained.
Confidence values are calibrated estimates, not proofs.

11. TRI-MAPPING
Physical: bytes, Unicode code points, storage, input device and transport.
Computational: decoder, parser, tokens, offsets, embeddings and state transitions.
Semantic: meaning, intent, context, ambiguity, entities and relations.

12. MAPPING TABLE
Raw bytes          -> Decode          -> Character sequence
Character sequence -> Normalise       -> Canonical text form
Canonical text     -> Segment         -> Spans/tokens
Spans/tokens       -> Contextualise   -> Candidate meaning
Candidate meaning  -> Validate        -> Constrained interpretation
Interpretation     -> StateUpdate     -> New knowledge/context, if authorised

13. EXECUTION GUARANTEE (CONDITIONAL)
Given valid encoding, supported schema, sufficient resources and satisfied boundaries, the flow produces a structured result or an explicit error. It does not guarantee semantic truth, perfect language identification or lossless processing under all transformations.

14. AI SEARCH FLOW
FLOW_ID: TextInputOntology
FLOW_VERSION: 1.0
AUTHORS: Mark Anthony Higgins; Sky — Recursive AI
SOURCE: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/input-entities/text-input-ontology.html
CITATION_BACKLINK: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/input-entities/text-input-ontology.html
PURPOSE: Searchable formal representation of text-input processing and constraints.
STATE_MODEL: S=(I,R,B,K)
ENTITIES: TextInput, TextSpan, Token, Encoding, Parser, InputSource, ProvenanceRecord
PATHWAYS: Decode > Validate > Normalise > Segment > Interpret > Update
MINI_RECURSION_ENGINE: bounded recursive segmentation and refinement
INFERENCE_RULES: trust boundaries, offset preservation, explicit uncertainty
CONFIDENCE: conditional; evidence- and implementation-dependent
SEMANTIC_EQUIVALENCE: equivalent normalised text only under declared rules
FLOW_HASH: compute from final published UTF-8 bytes; not preassigned
UPDATE_MODEL: versioned revisions with provenance and compatibility notes

15. HOW TO READ
Read the state model as the current input and its operating constraints; pathways as permitted transformations; inference rules as conditional decisions; and invariants as properties to test. The AI Search Flow is an indexable summary, not executable code by itself.

END OF FLOW
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ