# configuration/strings/lexicon.strings.ts

> 31 lines of code and 14 definitions.

Tree: GovLab Context
Language: typescript
Layer: product
Canonical: https://banes-lab.com/anatomy/context#file-context-configuration-strings-lexicon-strings-ts
Source text: https://banes-lab.com/source/context/configuration/strings/lexicon.strings.ts.txt

Listed in [configuration/strings](https://banes-lab.com/api/source/context/configuration/strings.md), after [configuration/strings/layer.strings.ts](https://banes-lab.com/source/context/configuration/strings/layer.strings.ts.md) and before [configuration/strings/ontology.report.strings.ts](https://banes-lab.com/source/context/configuration/strings/ontology.report.strings.ts.md).

## Definitions

- `exampleShapeOf` (lexical_declaration, line 1, exported)
- `misplacedExample` (lexical_declaration, line 7, exported)
- `exampleTagMismatch` (lexical_declaration, line 14, exported)
- `exampleFolderMismatch` (lexical_declaration, line 18, exported)
- `renameFromDeclaredTag` (lexical_declaration, line 28, exported)
- `renameUncovered` (lexical_declaration, line 32, exported)
- `undeclaredPlacement` (lexical_declaration, line 38, exported)
- `undeclaredRefusal` (lexical_declaration, line 42, exported)
- `NO_EXAMPLE` (lexical_declaration, line 5, exported)
- `UNNAMED_TAG` (lexical_declaration, line 11, exported)
- `NO_RENAME` (lexical_declaration, line 22, exported)
- `MALFORMED_RENAME` (lexical_declaration, line 24, exported)
- `SUBJECT_CHANGED` (lexical_declaration, line 26, exported)
- `STRAY_EXAMPLE` (lexical_declaration, line 36, exported)

## Contained in

- [configuration/strings](https://banes-lab.com/anatomy/context/folder-context-configuration-strings.md)

## Used by

- [core/normalizers/lexicon.normalizer.ts](https://banes-lab.com/source/context/core/normalizers/lexicon.normalizer.ts.md)
- [core/validators/lexicon.validator.ts](https://banes-lab.com/source/context/core/validators/lexicon.validator.ts.md)

## Linked from

- [core/normalizers](https://banes-lab.com/anatomy/context/folder-context-core-normalizers.md)
- [core/validators](https://banes-lab.com/anatomy/context/folder-context-core-validators.md)

## Source

```typescript
export const exampleShapeOf = function exampleShapeOf(category: string): string {
    return `lexicon: the example shape of category ${category}`;
};

export const NO_EXAMPLE = "carries no example, and its category declares a placed file for every term";

export const misplacedExample = function misplacedExample(example: string): string {
    return `example "${example}" is not <folder>/<subject>.<tag>.<ext> with a subject apart from the tag`;
};

export const UNNAMED_TAG =
    "names no tag or no folder, so its example cannot be compared with it: name the term <tag> Tag and end its definition on the folder it files in";

export const exampleTagMismatch = function exampleTagMismatch(placed: string, tag: string): string {
    return `example tags its file "${placed}", and the term names "${tag}"`;
};

export const exampleFolderMismatch = function exampleFolderMismatch(placed: string, folder: string): string {
    return `example sits in "${placed}", and the definition files the tag in "${folder}"`;
};

export const NO_RENAME = "carries no rename, and its category declares a rename for every term";

export const MALFORMED_RENAME = "rename is not two <folder>/<subject>.<tag>.<ext> paths";

export const SUBJECT_CHANGED = "rename changes the subject, and a rename keeps it";

export const renameFromDeclaredTag = function renameFromDeclaredTag(tag: string): string {
    return `rename starts from "${tag}", which is a declared tag and not a refused word`;
};

export const renameUncovered = function renameUncovered(folder: string, tag: string): string {
    return `rename lands on "${folder}/…${tag}", which no tag in its seeAlso places`;
};

export const STRAY_EXAMPLE = "carries an example its category declares no shape for";

export const undeclaredPlacement = function undeclaredPlacement(shape: string): string {
    return `states where its tag is filed, and its category declares no "${shape}" example shape`;
};

export const undeclaredRefusal = function undeclaredRefusal(shape: string): string {
    return `refuses a tag word, and its category declares no "${shape}" example shape`;
};
```
