# configuration/strings/pattern.strings.ts

> 33 lines of code and 11 definitions.

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

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

## Definitions

- `faceRegistered` (lexical_declaration, line 1, exported)
- `faceCycle` (lexical_declaration, line 5, exported)
- `faceUnregistered` (lexical_declaration, line 9, exported)
- `analyzeRefusal` (lexical_declaration, line 33, exported)
- `analyzeWrote` (lexical_declaration, line 37, exported)
- `windowWrote` (lexical_declaration, line 41, exported)
- `PATTERN_ARGV_SUMMARY` (lexical_declaration, line 13, exported)
- `COMMAND_POSITIONAL` (lexical_declaration, line 16, exported)
- `SOURCE_POSITIONAL` (lexical_declaration, line 18, exported)
- `PATTERN_FLAGS` (lexical_declaration, line 20, exported)
- `unknownCommand` (lexical_declaration, line 29, exported)

## Contained in

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

## Used by

- [core/registries/pattern.registry.ts](https://banes-lab.com/source/patterns/core/registries/pattern.registry.ts.md)
- [runtime/entrypoints/pattern.entrypoint.ts](https://banes-lab.com/source/patterns/runtime/entrypoints/pattern.entrypoint.ts.md)

## Linked from

- [core/registries](https://banes-lab.com/anatomy/patterns/folder-patterns-core-registries.md)
- [runtime/entrypoints](https://banes-lab.com/anatomy/patterns/folder-patterns-runtime-entrypoints.md)

## Source

```typescript
export const faceRegistered = function faceRegistered(name: string): string {
    return `pattern collection "${name}" is already registered`;
};

export const faceCycle = function faceCycle(name: string): string {
    return `pattern collection dependency cycle at "${name}"`;
};

export const faceUnregistered = function faceUnregistered(name: string): string {
    return `pattern collection "${name}" is not registered`;
};

export const PATTERN_ARGV_SUMMARY =
    "Inspect, plan, validate, analyze or synthesize a record dataset through the pattern substrate.";

export const COMMAND_POSITIONAL = "the operation: inspect, plan, validate, analyze or synthesize";

export const SOURCE_POSITIONAL = "the data file or folder of .json and .jsonl sources";

export const PATTERN_FLAGS = {
    count: "the number of records synthesize draws",
    mapping: "a JSON file assigning representations to fields",
    output: "the file the result is written to, in place of stdout",
    schema: "a JSON schema file validate checks the records against",
    seed: "the seed synthesize draws from",
    window: "the window size analyze writes rolling snapshots at",
} as const;

export const unknownCommand = function unknownCommand(command: string): string {
    return `unknown operation "${command}". Pass one of inspect, plan, validate, analyze or synthesize.`;
};

export const analyzeRefusal = function analyzeRefusal(fields: string): string {
    return `No field maps to a representation, so there is nothing to analyze. Unrepresentable fields: ${fields}. Provide a --mapping file assigning representations, or reshape the data so its fields carry scalar, list or object values.`;
};

export const analyzeWrote = function analyzeWrote(findings: string, output: string): string {
    return `[govlab.patterns] ${findings} findings → ${output}\n`;
};

export const windowWrote = function windowWrote(count: string, findings: string, file: string): string {
    return `[govlab.patterns] window ${count}: ${findings} findings → ${file}\n`;
};
```
