# configuration/strings/grammar.strings.ts

> 12 lines of code and 4 definitions.

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

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

## Definitions

- `undeclaredPagKind` (lexical_declaration, line 1, exported)
- `missingRequiredSlot` (lexical_declaration, line 5, exported)
- `enumViolation` (lexical_declaration, line 9, exported)
- `unknownTemplateType` (lexical_declaration, line 13, exported)

## Contained in

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

## Used by

- [core/factories/grammar.factory.ts](https://banes-lab.com/source/context/core/factories/grammar.factory.ts.md)
- [core/normalizers/grammar.normalizer.ts](https://banes-lab.com/source/context/core/normalizers/grammar.normalizer.ts.md)
- [core/resolvers/template.resolver.ts](https://banes-lab.com/source/context/core/resolvers/template.resolver.ts.md)

## Linked from

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

## Source

```typescript
export const undeclaredPagKind = function undeclaredPagKind(kind: string): string {
    return `pag: the kind "${kind}" is not declared in the PAG taxonomy`;
};

export const missingRequiredSlot = function missingRequiredSlot(slot: string): string {
    return `missing_required_slot:${slot}`;
};

export const enumViolation = function enumViolation(slot: string): string {
    return `enum_violation:${slot}`;
};

export const unknownTemplateType = function unknownTemplateType(type: string): string {
    return `unknown_template_type:${type}`;
};
```
