Elamur: **Mova** · [Parse](https://mova.elamur.ai/free/en/parse/) · [Research](https://md.research.elamur.ai/free/en/) · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/) · [Shryfti](https://md.shryfti.elamur.ai/free/en/)

[Mova](https://md.mova.elamur.ai/free/en/) · [this page in HTML](https://mova.elamur.ai/free/en/docs/tools/lobster/)

[Mova](https://md.mova.elamur.ai/free/en/) / [docs](https://md.mova.elamur.ai/free/en/docs/) / [tools](https://md.mova.elamur.ai/free/en/docs/tools/) / lobster — the Mova Logic Language

# lobster — the Mova Logic Language

The Lobster 🦞 keeps the **Mova Logic Language** (LL): the flat token interchange between Mova's layers. A sentence is a header (the prag row, the frame rows and the world's changes) and one record per token of Mova's tree; every piece of knowledge about a word adds tokens and never replaces any. The crate is a library for Mova's other crates (`lobster::v4`, `lobster::world4`, `lobster::worldtok`, `lobster::record`, `lobster::version`) and the `lobster` binary. The language, its shapes, versions and limits are described in [The Mova Logic Language](https://md.mova.elamur.ai/free/en/docs/repo-docs/logic-language/).

## Modules

| module | what |
| --- | --- |
| `v4` | the record writer (`write4`), decoder and checker (`check4`), the realizer (`real4`), entity marks from `coref` |
| `world4` | the world reader: LL records → Mova's story world (`world` crate); the reference reader of Mova's own parse |
| `worldtok` | the world writer (world → added tokens), the strip gate, the chain measurement (`world4`), `reframe` |
| `record` | one parsed document → its records with the world's tokens and a readable view (events, entities, words): the path `lobster logic` and the parse service share; the short-description index (`desc-index`) |
| `version` | the version of the language and its compatibility policy; stream headers; `registry-check` |
| `pop`, `long` | the registry: popular own tokens, n-grams, markers; `registry-fresh` |
| `animal` | the animal own tokens measured in context (`animal-context`) |
| `layers` | the dev slice from the treestore (`slice`, `devtext`), Mova's parse of raw text (`parse`), comparisons |
| `fullslice` | a wikislice train/dev slice rebuilt with every layer (`fullslice`: `# sent_id`, `# text`, `# pragrow`, Mova's `# frame` rows, the tree rows unchanged), in parallel by shard with resume; `fullcheck` (tree rows equal to the old slice, layer distributions) |
| `write`, `check`, `real`, `repair`, `spec`, `spell`, `text`, `wordnet`, `ili` | the earlier experimental versions (`v1`–`v3`), kept so their outputs can be reproduced |

## Commands

```
# the current language (Mova Logic 0.6)
lobster slice STORE_DIR DEV_TSV OUT.tok                        # the dev slice: tree rows, prag rows, frame rows
lobster conllu IN.conllu PRAG.tsv OUT.tok                      # a CoNLL-U corpus (documents by `# newdoc id`) and its prag TSV as a slice
lobster reframe IN.tok OUT.tok                                 # frame rows re-read by Mova from the tree rows
lobster fullslice META.json OUT_DIR TRAIN_TOKENS JOBS         # a wikislice slice (its meta.json) again with every layer, Alice's shape
lobster fullcheck NEW.tok[.zst] OLD.tok[.zst]|- [STATS.json]   # NEW minus its added lines = OLD (`-`: row shape only); fill rates, frames per sentence
lobster write4 REGISTRY OEWN_DIR SHORTDESC.tsv IN.tok OUT.ll [--entities none|known|whole]
lobster check4 SRC.tok IN.ll [--corrupt drop-class|drop-lang|drop-pos|swap|drop-head]
lobster real4 FORMS_DIR < IN.ll > OUT.txt
lobster world4 REGISTRY OEWN_DIR SHORTDESC.tsv IN.tok IN.ll OUT_DIR   # AST → LL → world → LL → AST, residual, controls
lobster logic REGISTRY OEWN_DIR DESC_INDEX|- IN.tok OUT.ll [OUT.txt]  # records with the world's tokens, one document at a time; readable views
lobster desc-index SHORTDESC.tsv OUT.tsv                        # the sorted short-description index (read from disk)
lobster registry-fresh OLD.tsv VERSION ANIMALS_KEPT DATE NEW.tsv
lobster registry-check OLD.tsv NEW.tsv [--rebuild]
lobster animal-context SLICE.tok OEWN_DIR SHORTDESC.tsv REGISTRY [MIN_SHARE]
lobster layercmp GOLD.tok TEST.tok; lobster surface4 SRC.tok REAL.txt; lobster headstats SRC.tok; lobster regcover REGISTRY IN.ll
# the earlier experimental versions
lobster write|check|real|noise|repair|report|dict|ili|core|core-filter|registry-build|registry-ascii|trigrams|respell …
```

`world4` writes `report.md` (the steps, the layers the world gives back, the top residual patterns, the reference world against the LL world, the gates' refusals, the negative controls), `residual.tsv`, `world-diff.tsv`, `worlds.txt` (each document's world as id-free lines) and `plus.ll` (the stream with the world's tokens). `LOBSTER_THREADS` sets its threads (6); documents are merged in their order, so the outputs do not depend on it.

Inputs, outside the repository: a slice of Mova's Wikipedia treestore and its dev list, the Wikipedia short descriptions (title, description), Open English WordNet 2025 (JSON), Mova's `forms` tables. Releases live in <Mova release> (`SPEC.md`, `registry.tsv`, a dev sample, [Elamur Cosmic License](https://md.mova.elamur.ai/free/en/docs/LICENSE/), [Changelog](https://md.mova.elamur.ai/free/en/docs/CHANGELOG/), `SHA256SUMS`).

Build: `CARGO_TARGET_DIR=<shared target> cargo build --release --offline -p mova-lobster` (a member of the root workspace); tests: `cargo test --release --offline -p mova-lobster --lib`.

## Limits

- No word-sense disambiguation: a word's class is its first WordNet sense (an own animal token needs its animal sense to dominate its linked uses, `animal-context`).
- The world reader maps entity kinds to Mova's tale registries (character, place, object): organisations become personified characters, most other things objects with the type `thing`; what the tale world's closed sets cannot hold (number, neuter gender, frame kinds, obliques other than `with`) stays in the residual.
- The LL reader finds a filler's token by its lemma near the predicate; the reference reader has Mova's exact anchors.
- The realizer keeps the stream's word order and gives each record its form from lemma, UPOS and features.
- [← previous langseg](https://md.mova.elamur.ai/free/en/docs/tools/langseg/)
- [next → macula](https://md.mova.elamur.ai/free/en/docs/tools/macula/)
- [↑ back to tools](https://md.mova.elamur.ai/free/en/docs/tools/)

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://mova.elamur.ai/sitemap.xml) · [llms.txt](https://mova.elamur.ai/llms.txt)
