Skip to content

Check rules

Each rule catches one way the term set stops agreeing with itself or with the pages that name it. Come here from an annotation to read what fixes it.

manni term check reads records and reports what does not line up across the set. It reads no prose; manni term lint does that. Each rule id is manni:term/<rule>, and each rule’s level can be moved or turned off under term.severity.

RuleDefaultFires when
undefined-termerrorA page’s concepts: names no entry, by label, id or alt-label.
duplicate-iderrorTwo entries in one language share an id, ignoring case.
label-collisionerrorTwo entries claim the same preferred label, ignoring case. Across languages, only when the spellings differ.
alt-label-collisionerrorAn entry’s alt-label is another entry’s preferred label, ignoring case. Across languages, only when the spellings differ.
label-overlaperrorAn alt-label repeats the entry’s own label, or a hidden-label repeats any name the entry or another entry goes by.
dangling-referenceerrorA value of broader, narrower, related-terms or see names no entry, by label or by id.
broader-cycleerrorA chain of broader returns to where it started, across the terms and every page’s graph: block.
see-not-emptyerrorAn entry with see also carries a definition.
missing-definitionerrorAn entry has neither a definition nor a see.
conflicting-matcheserrorOne IRI is listed under two of an entry’s match fields.
asymmetric-hierarchywarningA names B as broader, and B omits A from narrower, or the reverse.
asymmetric-relatedwarningA names B in related-terms, and B omits A.
related-in-hierarchywarningA related-terms value is also above or below the entry in the hierarchy, at any depth.
alt-label-referencewarningA page’s concepts: names an entry by one of its alt-labels.
ambiguous-alt-labelwarningTwo entries share an alt-label, ignoring case.
deprecated-labelwarningThe entry’s own label is deprecated or superseded in its designations, and the entry has no see.
abstract-too-longnoticeAn abstract is longer than abstractMaxLength, 60 by default.
unused-termnoticeNo page’s concepts: names the entry, or an entry in another language with its id.
hierarchy-outside-termbasenoticeA page’s graph: block gives a term a broader, narrower or related-concepts value that the term’s own entry does not list.
related-siblingsnoticeTwo related terms share a broader term.
orphan-termnoticeAn entry has no broader, narrower or related term, in a termbase that has a hierarchy.
keyword-candidatenoticeA free keywords: value is on enough pages and names no term.

A name on a page resolves the way the graph resolves it. A label comes first, then an id, then an alt-label, ignoring case. concepts: here stands for graph.concepts too, and a message names the field the value came from.

Every label comparison ignores case. The Vale style write -f vale renders is keyed on the lowercased term, so two labels that differ only in case would collide there without a word.

A set can hold one term per language for a concept, joined on id. A term that names no language counts as en, and languages compare ignoring case. The rules and their messages stay the same, and the rules that compare names read the language:

RuleIn a set of several languages
duplicate-idCompares ids within one language. A German and an English term with one id are one concept, not a duplicate.
label-collision, alt-label-collision, label-overlap, ambiguous-alt-labelWithin a language, as in a set of one. Across languages, the names collide only when they match ignoring case and differ in spelling. API in both languages is one word. Kubernetes against kubernetes collides, because the Vale style could not tell them apart.
dangling-reference, broader-cycle, asymmetric-hierarchy, asymmetric-related, related-in-hierarchy, related-siblingsA value resolves to a label in the entry’s own language, then to an id in it. Failing both, any language’s label or id will do.
undefined-term, alt-label-reference, hierarchy-outside-termbaseA name on a page resolves as the graph resolves it. The page’s own language comes first, then its base language, so en-GB finds an en-US term. Then any language. Each pass tries a label, an id, then an alt-label. A page or term with no language takes part only in the last pass.
unused-term, orphan-termA page that names any language’s term of a concept uses every term of that concept. A concept placed in the hierarchy in one language is placed in all of them.

The others do not compare names at all. This set holds three concepts in English and German, with unused-term turned off:

Terminal window
$ manni term check docs/terms
docs/terms/en/kubernetes.md:5
error manni:term/label-collision "Kubernetes" is claimed by docs/terms/de/kubernetes.md:1 as "kubernetes".
Rename one label, or merge the two entries.
manni:term label-collision: Two entries claim the same preferred label, ignoring case. Across languages, only when the spellings differ.
Guide: https://hawkeyexl.github.io/manni/term/reference/rules/#label-collision
1 error in 6 terms

This set breaks every rule. Each finding sits on the line of the field that caused it, or on the entry’s first line when no field did:

Terminal window
$ manni term check
docs/glossary/varifocals.md:1
error manni:term/duplicate-id id: "varifocal" is also used by docs/terms/varifocal.md:1.
Give one entry its own id, or merge the two.
manni:term duplicate-id: Two entries in one language share an id, ignoring case.
Guide: https://hawkeyexl.github.io/manni/term/reference/rules/#duplicate-id
docs/guides/care.md:3
notice manni:term/keyword-candidate keywords: "coatings" is on 2 pages and names no term, so add it to concepts: or run manni term fill --crawl.
manni:term keyword-candidate: A free keywords: value is on enough pages and names no term.
Guide: https://hawkeyexl.github.io/manni/term/reference/rules/#keyword-candidate
docs/guides/fitting.md:4
warning manni:term/alt-label-reference concepts: "PAL" is an alt-label of "progressive lens", so name the label.
manni:term alt-label-reference: A page's concepts: names an entry by one of its alt-labels.
Guide: https://hawkeyexl.github.io/manni/term/reference/rules/#alt-label-reference
error manni:term/undefined-term concepts: "monofocal" names no entry.
Correct the value, or run manni term fill to add the term.
manni:term undefined-term: A page's concepts: names no entry, by label, id or alt-label.
Guide: https://hawkeyexl.github.io/manni/term/reference/rules/#undefined-term
docs/guides/fitting.md:7
error manni:term/broader-cycle broader: corrective lens > lens > corrective lens.
Remove the broader value that closes the loop.
manni:term broader-cycle: A chain of broader returns to where it started, across the terms and every page's graph: block.
Guide: https://hawkeyexl.github.io/manni/term/reference/rules/#broader-cycle
notice manni:term/hierarchy-outside-termbase graph: broader "corrective lens" on "lens" is not on its term page (docs/terms/lens.md), so add it there.
manni:term hierarchy-outside-termbase: A page's graph: block gives a term a broader, narrower or related-concepts value that the term's own entry does not list.
Guide: https://hawkeyexl.github.io/manni/term/reference/rules/#hierarchy-outside-termbase
docs/terms/bifocal.md:5
notice manni:term/abstract-too-long abstract: 81 characters is over the limit of 60, so shorten it
manni:term abstract-too-long: An abstract is longer than abstractMaxLength, 60 by default.
Guide: https://hawkeyexl.github.io/manni/term/reference/rules/#abstract-too-long
docs/terms/bifocal.md:7
notice manni:term/related-siblings related-terms: "trifocal" shares the broader term "lens", which already relates them.
Drop the link unless it says more than the shared parent.
manni:term related-siblings: Two related terms share a broader term.
Guide: https://hawkeyexl.github.io/manni/term/reference/rules/#related-siblings
docs/terms/bifocal.md:8
error manni:term/label-overlap hidden-labels: "multifocal" is an alt-label of docs/terms/progressive-lens.md:1.
Remove it here, or from that entry's alt-labels.
manni:term label-overlap: An alt-label repeats the entry's own label, or a hidden-label repeats any name the entry or another entry goes by.
Guide: https://hawkeyexl.github.io/manni/term/reference/rules/#label-overlap
docs/terms/corrective-lens.md:3
warning manni:term/deprecated-label label: "corrective lens" is deprecated in designations, so promote another label or redirect with see:.
manni:term deprecated-label: The entry's own label is deprecated or superseded in its designations, and the entry has no see.
Guide: https://hawkeyexl.github.io/manni/term/reference/rules/#deprecated-label
docs/terms/lens.md:1
warning manni:term/asymmetric-related related-terms: omits "optics", which lists this entry as related.
Add it to related-terms, or remove this entry from its related-terms.
manni:term asymmetric-related: A names B in related-terms, and B omits A.
Guide: https://hawkeyexl.github.io/manni/term/reference/rules/#asymmetric-related
docs/terms/lens.md:6
warning manni:term/asymmetric-hierarchy narrower: omits "corrective lens", which lists this entry as broader.
Add it to narrower, or remove this entry from its broader.
manni:term asymmetric-hierarchy: A names B as broader, and B omits A from narrower, or the reverse.
Guide: https://hawkeyexl.github.io/manni/term/reference/rules/#asymmetric-hierarchy
docs/terms/monocle.md:1
error manni:term/missing-definition definition: missing, so write one or run manni term fill.
manni:term missing-definition: An entry has neither a definition nor a see.
Guide: https://hawkeyexl.github.io/manni/term/reference/rules/#missing-definition
docs/terms/optics.md:6
warning manni:term/related-in-hierarchy related-terms: "lens" is also narrower than this entry, so keep one of the two.
manni:term related-in-hierarchy: A related-terms value is also above or below the entry in the hierarchy, at any depth.
Guide: https://hawkeyexl.github.io/manni/term/reference/rules/#related-in-hierarchy
docs/terms/optics.md:7
error manni:term/conflicting-matches exact-matches: "https://vocab.example.com/optics" is also in broad-matches, and a mapping has one kind.
Keep the IRI under the one kind that holds.
manni:term conflicting-matches: One IRI is listed under two of an entry's match fields.
Guide: https://hawkeyexl.github.io/manni/term/reference/rules/#conflicting-matches
docs/terms/progressive-lens.md:1
notice manni:term/orphan-term no broader, narrower or related term, so place it in the hierarchy.
manni:term orphan-term: An entry has no broader, narrower or related term, in a termbase that has a hierarchy.
Guide: https://hawkeyexl.github.io/manni/term/reference/rules/#orphan-term
docs/terms/trifocal.md:1
notice manni:term/unused-term no page's concepts: names this term.
Name it in the concepts: of a page that uses it.
manni:term unused-term: No page's concepts: names the entry, or an entry in another language with its id.
Guide: https://hawkeyexl.github.io/manni/term/reference/rules/#unused-term
docs/terms/trifocal.md:5
warning manni:term/ambiguous-alt-label alt-labels: "Multifocal" is also an alt-label of docs/terms/progressive-lens.md:1, so a reader can't tell which term it means.
Keep it on the entry it belongs to.
manni:term ambiguous-alt-label: Two entries share an alt-label, ignoring case.
Guide: https://hawkeyexl.github.io/manni/term/reference/rules/#ambiguous-alt-label
docs/terms/trifocal.md:7
error manni:term/dangling-reference related-terms: "tetrafocal" names no entry.
Did you mean "trifocal"? Correct the value, or add the term it names.
manni:term dangling-reference: A value of broader, narrower, related-terms or see names no entry, by label or by id.
Guide: https://hawkeyexl.github.io/manni/term/reference/rules/#dangling-reference
docs/terms/varifocal.md:1
error manni:term/duplicate-id id: "varifocal" is also used by docs/glossary/varifocals.md:1.
Give one entry its own id, or merge the two.
manni:term duplicate-id: Two entries in one language share an id, ignoring case.
Guide: https://hawkeyexl.github.io/manni/term/reference/rules/#duplicate-id
docs/terms/varifocal.md:3
error manni:term/label-collision "varifocal" is claimed by docs/glossary/varifocals.md:1 as "Varifocal".
Rename one label, or merge the two entries.
manni:term label-collision: Two entries claim the same preferred label, ignoring case. Across languages, only when the spellings differ.
Guide: https://hawkeyexl.github.io/manni/term/reference/rules/#label-collision
docs/terms/varifocal.md:4
error manni:term/alt-label-collision alt-labels: "Lens" is the label of docs/terms/lens.md:1.
Remove the alt-label, or merge the two entries.
manni:term alt-label-collision: An entry's alt-label is another entry's preferred label, ignoring case. Across languages, only when the spellings differ.
Guide: https://hawkeyexl.github.io/manni/term/reference/rules/#alt-label-collision
docs/terms/varifocal.md:5
error manni:term/see-not-empty see: "progressive lens" redirects this entry, so remove its definition
manni:term see-not-empty: An entry with see also carries a definition.
Guide: https://hawkeyexl.github.io/manni/term/reference/rules/#see-not-empty
11 errors, 6 warnings, 6 notices in 9 terms

Each message ends with what to do. Two dim lines follow it: the rule with when it fires, and a Guide link to the rule’s section below.

A concepts: value resolves against labels, then ids, then alt-labels. It fires only when none of the three claims the value. The finding sits on the page’s concepts: line. graph.concepts is resolved the same way, and its message says graph.concepts:. Add the missing entry, or correct the value.

Reported on every entry that shares the id in its language, each naming the others. Ids compare ignoring case, as a reference to an id resolves. So Bifocal and bifocal collide. An id comes from the record, else from the construct’s own identifier, else from the slug of the label. So two entries can collide without either spelling out an id. A page and a manifest entry that share an id collide the same way, and neither is kept over the other.

Reported on each later entry, naming the first one read. Change one label, or make one entry an alt-label of the other.

An alt-label that is another entry’s preferred label makes one name mean two entries. Remove the alt-label, or merge the two entries.

A name has one status in a termbase. An alt-label that repeats the entry’s own label says nothing new. A hidden-label marks a name not to use, so it cannot also be a name the termbase uses. The message names what the value repeats:

alt-labels: "Lens" repeats this entry's label. Remove it from alt-labels.
hidden-labels: "lens" repeats this entry's alt-label. Keep it in alt-labels or hidden-labels, not both.
hidden-labels: "multifocal" is the label of docs/terms/multifocal.md:1. Remove it from hidden-labels.
hidden-labels: "multifocal" is an alt-label of docs/terms/progressive-lens.md:1. Remove it here, or from that entry's alt-labels.

The finding sits on the entry holding the repeated value, on that field’s line. Remove the value, or move it to the field that matches its status.

One finding per value that resolves to nothing. broader, narrower, related-terms and see resolve against preferred labels and ids, ignoring case. Add the missing entry, or correct the value.

The chain reads every term’s broader, every term’s narrower in reverse, and the broader and narrower of every page’s graph: block. A block’s values that name no term are concepts of their own, so a chain can pass through them.

Each cycle is reported once. When the terms close it alone, it sits on the entry of the cycle read first. When a block’s edge closes it, it sits on that block’s field line. The message spells the chain. Remove the value that closes it.

An entry with see is a redirect to the entry that defines the term. Remove its definition, or remove see and keep it as an entry of its own.

The schema requires only a label, so a term page can land before its meaning is written. This rule keeps the gap visible. It sits on the entry’s first line and names the definition field. A redirect needs no definition, and one that carries a definition is see-not-empty instead. Write the definition, or turn the rule down under term.severity while a termbase is being filled in.

exact-matches, close-matches, broad-matches, narrow-matches and related-matches each say how a concept elsewhere relates to this one. An IRI under two of them says two different things. The rule reports each such IRI once, on the line of the first field that lists it:

exact-matches: "https://www.wikidata.org/wiki/Q1424588" is also in broad-matches, and a mapping has one kind. Keep the IRI under the one kind that holds.

The message names the first field in the order exact, close, broad, narrow, related, then the other. Keep the IRI under the one kind that holds.

Reported on the entry that should carry the missing half, naming the entry that carries the other. Add the label to that field, or remove the one-sided value. Only the terms’ own fields count here. A page’s graph: block is hierarchy-outside-termbase’s concern.

A related link holds both ways. When A lists B in related-terms and B does not list A, the finding sits on B’s related-terms line, naming A. Add A to B, or remove B from A.

A related link joins two concepts that sit apart in the hierarchy. When the related term is also above or below the entry, at any depth, the hierarchy already relates them. The chain reads the same union broader-cycle reads, so a page’s graph: block counts:

related-terms: "lens" is also narrower than this entry, so keep one of the two.

The finding sits on the entry’s related-terms line. Keep the hierarchy and drop the related link, unless the hierarchy is the mistake.

The graph resolves an alt-label to its entry, so the page still lands on the right concept. The message names that entry, because the fix is to write its label instead:

concepts: "PAL" is an alt-label of "Pluggable auth layer", so name the label.

The finding sits on the page’s concepts: or graph.concepts line.

An alt-label that two entries share resolves to the first one read, so a page that names it may land on the wrong concept. The finding sits on each later entry’s alt-labels line, naming the first. Keep the alt-label on the entry it belongs to.

A designations item can mark one of the entry’s names with an administrative-status. When the item for the entry’s own label says deprecated or superseded, the preferred name is one the termbase retires. The finding sits on the label line. Promote an alt-label to label, or turn the entry into a redirect with see. A redirect never fires the rule.

An abstract is the short form a hover card shows. Shorten it, or raise abstractMaxLength for the set.

A notice, so it never fails a run. A termbase written before the pages that use it is entirely unused terms. Set severity: {unused-term: off} while that is the case. A value that names the entry by its id or an alt-label is a use.

A page’s graph: block whose label names a term can give that term a broader, narrower or related-concepts value. The graph keeps both the term’s edges and the block’s. This rule notes each block value that the term’s own broader, narrower or related-terms does not list:

graph: broader "Networking" on "Retry" is not on its term page (docs/glossary/retry.md), so add it there.

The finding sits on the block’s field line. A term read from a manifest, a TBX file or a glossary construct is a term entry, not a term page. Add the value to the term, or remove it from the block.

Two terms under one broader term are already related through it. A related link between them may still help a reader, so this is a notice. It is reported once per pair, on the first entry that lists the other:

related-terms: "trifocal" shares the broader term "lens", which already relates them. Drop the link unless it says more than the shared parent.

Keep the link when it says something the shared parent does not. Otherwise drop it.

An entry with no broader, narrower or related term sits outside the concept scheme. The rule runs only when the termbase has a hierarchy at all, so a flat glossary never hears of it. A graph: block’s edges count, and a redirect is never an orphan. Add a broader term, or a related one.

A free keywords: value that several pages share is a concept nobody has defined. The rule counts the pages each keyword is on, ignoring case. A keyword that is a term’s label, id or alt-label is never a candidate. It needs as many pages as fill.crawl.minPages asks for, 2 by default:

keywords: "retries" is on 7 pages and names no term, so add it to concepts: or run manni term fill --crawl.

The finding sits on the keywords: line of the first page in path order, once per keyword. A term page’s own keywords are not counted. Define the term, or let manni term fill --crawl propose one.