---
title: "kg-uk-parse-gates — Mova code model"
description: "Mova code model of kg/src/uk.rs: components with their labels, obernants and the model text."
url: "https://groupants.elamur.ai/free/en/mova/kg/src/uk.rs.groupant/parse-gates.groupant/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Research](https://md.research.elamur.ai/free/en/) · **Groupants**

This page as HTML: <https://groupants.elamur.ai/free/en/mova/kg/src/uk.rs.groupant/parse-gates.groupant/>

# kg-uk-parse-gates

The groupant beside kg/src/uk.rs in the Mova repository: what the code computes, what it never does, how to go back from its outputs, its invariants, cost and checks.

## Facts

- **kind:** groupant_fragment
- **status:** partial source bound model
- **source:** [`kg/src/uk.rs`](https://github.com/ElamurAI/mova-free/blob/main/kg/src/uk.rs)
- **source SHA-256:** `f2c9f7b2877f239a…`
- **covers:** Parse gates, proper-name filtering and candidate cardinality. (bytes 7924–10892)
- **part of:** [kg-uk](https://md.groupants.elamur.ai/free/en/mova/kg/src/uk.rs.groupant/)
- **repository folder:** [`kg/src/uk.rs.groupant/parse-gates.groupant`](https://github.com/ElamurAI/mova-free/tree/main/kg/src/uk.rs.groupant/parse-gates.groupant)
- **repository commit:** `48f2e6f74146`

> **Implementation material.** A Mova code model describes this code at one source revision: partial models, finite checks and their stated scope. It is not a reviewed general exposition, and its labels are shown as written, never raised.

## Components

| component | label | where |
|---|---|---|
| **approximant** | partial | [approximant](#approximant) |
| **ast** | partial | `../syntax.json` |
| **composition** | partial | [composition](#composition) |
| **cost** | partial | [cost](#cost) |
| **descriptant** | present | [descriptant](#descriptant) |
| **invariant** | partial | [invariant](#invariant) |
| **tests** | executed bounded checks | [tests](#tests) |

## Obernants

The typed relations around the forward model: the behaviour complement (what the code never does), the reverse reconstruction (every input compatible with an output) and specialised views.

| id | type | label | where |
|---|---|---|---|
| `behavior_complement` | behavior_complement | partial source derived model | [behavior_complement](#behavior-complement) |
| `reverse_reconstruction` | reverse_reconstruction | partial source derived model | [reverse_reconstruction](#reverse-reconstruction) |
| `proper_context` | proper_context | partial source derived model | [proper_context](#proper-context) |
| `unknown_order` | unknown_order | partial source derived model | [unknown_order](#unknown-order) |
| `candidate_dedup` | candidate_dedup | partial source derived model | [candidate_dedup](#candidate-dedup) |
| `nominal_dispatch` | nominal_dispatch | partial source derived model | [nominal_dispatch](#nominal-dispatch) |

## Model text


### descriptant

#### kg-uk-parse-gates

Parse gates, proper-name filtering and candidate cardinality.

##### Modeling epoch — 2026-10-31

Source read before tests and models; retained prospective notes accompany the parent. Current evidence uses bounded invented inputs only. This is partial modeling, not proof or corpus accuracy.

### approximant

#### Forward relation

Reject punctuation in source order; empty,length,ASCII-digit,conjunction,unknown gates follow; filter proper/common, reject dash+verb, enumerate candidates then unique accept.

##### Executable approximant gap

Exact categorical structure, identifiers, parser decisions and effects have no useful percentage metric established here. No executable surrogate, automatic substitution or 1/2/5/10% guarantee is claimed.

### invariant

#### Invariant and domain

Only one distinct surviving Fact returned; word index means filtered word coordinate.

##### Cost and resources

O(B+n*a+candidate construction/equality); n<=8 after gate.

### cost

#### Cost and resources

O(B+n*a+candidate construction/equality); n<=8 after gate.

### composition

#### Composition

Parse gates, proper-name filtering and candidate cardinality.

Reject punctuation in source order; empty,length,ASCII-digit,conjunction,unknown gates follow; filter proper/common, reject dash+verb, enumerate candidates then unique accept.

The parent invokes scoped transformations through the actual functions named in their source ranges. Children partition useful observations, not a complete semantic proof; boundaries can omit helpers, tests and effects.

### models

### behavior_complement

TooLong precedes ASCII-digit rejection; other Unicode numerals are not rejected by that digit gate; comma before ? yields comma error. Case filtering does not remove sole proper-only or common-only analyses.

### reverse_reconstruction

Reject reason identifies a set of inputs with earlier gates passed; accepted Fact loses rejected alternatives and punctuation.

### proper_context

With both classes, lowercase→common; mid-sentence uppercase→proper; sentence-initial uppercase needs names membership.

### unknown_order

First word without forms rejects before finite/dash construction.

### candidate_dedup

Identical Facts from duplicate analyses count once; two different Facts return Ambiguous.

### nominal_dispatch

Nominal_sentence runs only when no finite predicate candidates exist, not when all verbal constructions fail.


### tests

#### Evidence

Parent source checks (a fragment inherits only the behavior they actually exercise):

- uk::tests::tokens_strip_stress_and_keep_apostrophes
- uk::tests::render_check_catches_damage
- uk::wave29::failure_precedence_and_real_parse

Selected kg tests: 15 named outcomes, twice debug/twice release, equal sorted outcomes. Standalone actual global/build.rs: 3 named outcomes per run, twice debug/twice optimized; build_child is normally no-op, parent fixture invokes it against isolated synthetic seeds. Eight compiled source mutations (one per source) each compiled successfully and exited101 on the focused assertion; exact source restoration followed by positive rerun.

This fragment's untested branches remain source-derived. No live graph, DB, corpus, teacher, GPU or held-out evaluation was used. Command specs and numeric exits are retained in the external wave29 graphlang receipt. Strict kg Clippy reports existing source lints; see receipt.
