---
title: "onto-query-lookup — Mova code model"
description: "Mova code model of onto/src/query.rs: components with their labels, obernants and the model text."
url: "https://groupants.elamur.ai/free/en/mova/onto/src/query.rs.groupant/lookup.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/onto/src/query.rs.groupant/lookup.groupant/>

# onto-query-lookup

The groupant beside onto/src/query.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:** [`onto/src/query.rs`](https://github.com/ElamurAI/mova-free/blob/main/onto/src/query.rs)
- **source SHA-256:** `c1e3d46ec350cc30…`
- **covers:** Found=merge(exact,lower,capitalized) else first successful plural candidate for nouns (bytes 2797–4749)
- **part of:** [onto-query](https://md.groupants.elamur.ai/free/en/mova/onto/src/query.rs.groupant/)
- **repository folder:** [`onto/src/query.rs.groupant/lookup.groupant`](https://github.com/ElamurAI/mova-free/tree/main/onto/src/query.rs.groupant/lookup.groupant)
- **repository commit:** `855da7bd4a7b`

> **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) |
| `form_order` | form_order | partial source derived model | [form_order](#form-order) |
| `unique_senses` | unique_senses | partial source derived model | [unique_senses](#unique-senses) |
| `plural_order` | plural_order | partial source derived model | [plural_order](#plural-order) |
| `class_domain` | class_domain | partial source derived model | [class_domain](#class-domain) |

## Model text


### descriptant

#### onto-query-lookup

Found=merge(exact,lower,capitalized) else first successful plural candidate for nouns

##### Epoch 2026-10-31

Specialized source fragment bytes [2797,4749); shared parent AST. Excludes unrelated parent operations and added test module.

### approximant

#### Scoped forward

Found=merge(exact,lower,capitalized) else first successful plural candidate for nouns

##### Domain

This byte-scoped operator uses the parent valid-state domain plus the following local restrictions:

Form name retained from first matching variant

Append only Cid not already in result

ies→y; ves→f,fe; es strip; s strip

Pos.same_word_class handles satellites

No executable percentage surrogate established.

### invariant

#### Local observations

Any direct match excludes plural fallback; explicit ID POS mismatch excludes lemma search

Form name retained from first matching variant

Append only Cid not already in result

ies→y; ves→f,fe; es strip; s strip

Pos.same_word_class handles satellites

### cost

#### Scoped cost

Fixed spelling variants, linear sense scans with O(S²) uniqueness worst case.

Restriction to this operator's traversed inputs; parent total is not charged to every fragment. No standalone measurement.

### composition

#### Parent join

lookup supplies the parent relation: Found=merge(exact,lower,capitalized) else first successful plural candidate for nouns

Output compatibility is conditional on the local domain and earlier-branch exclusions. Other parent branches are outside this fragment.

### models

### behavior_complement

Any direct match excludes plural fallback; explicit ID POS mismatch excludes lemma search

### reverse_reconstruction

Found fiber includes case/underscore spellings and plural spellings whose earlier candidates miss

### form_order

Form name retained from first matching variant

### unique_senses

Append only Cid not already in result

### plural_order

ies→y; ves→f,fe; es strip; s strip

### class_domain

Pos.same_word_class handles satellites


### tests

#### Evidence

Parent tests.md identifies selected actual-code checks. Fragment is a source-scoped partial model; parent finite fixtures do not establish exhaustive branch coverage or every local equation.
