# tools/core/strings/segment.strings.ts

> 19 lines of code and 3 definitions.

Tree: Coordination tree
Language: typescript
Layer: infrastructure
Canonical: https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-strings-segment-strings-ts
Source text: https://banes-lab.com/source/coordination/tools/core/strings/segment.strings.ts.txt

Listed in [tools/core/strings](https://banes-lab.com/api/source/coordination/tools/core/strings.md), after [tools/core/strings/role.strings.ts](https://banes-lab.com/source/coordination/tools/core/strings/role.strings.ts.md) and before [tools/core/strings/snapshot.strings.ts](https://banes-lab.com/source/coordination/tools/core/strings/snapshot.strings.ts.md).

## Definitions

- `segmentSummary` (lexical_declaration, line 14, exported)
- `segmentCounts` (lexical_declaration, line 1, exported)
- `rehearsalLine` (lexical_declaration, line 10, exported)

## Used by

- [tools/core/entrypoints/segment.entrypoint.ts](https://banes-lab.com/source/coordination/tools/core/entrypoints/segment.entrypoint.ts.md)

## Source

```typescript
export const segmentCounts = function segmentCounts(
    scanned: number,
    hits: number,
    edits: number,
    rejected: number,
): string {
    return `scanned=${String(scanned)} hits=${String(hits)} edits=${String(edits)} rejected=${String(rejected)}`;
};

export const rehearsalLine = function rehearsalLine(flag: string): string {
    return `rehearsal only: rerun without ${flag} to write\n`;
};

export const segmentSummary = function segmentSummary(
    verdict: string,
    counts: string,
    report: string,
    rehearsed: string,
): string {
    return `${verdict}  ${counts}\nreport: ${report}\n${rehearsed}`;
};
```
