# core/normalizers/sentence.normalizer.ts

> 13 lines of code and 4 definitions.

Tree: Build tree
Language: typescript
Layer: processing
Canonical: https://banes-lab.com/anatomy/build#file-build-core-normalizers-sentence-normalizer-ts
Source text: https://banes-lab.com/assets/sources/source.1d253fb6a2102da39e81a764ce3df0715aa3096310ac2d56924c9e4b9815dac5.generated.txt

## Definitions

- `isLabelledItem` (lexical_declaration, line 3, exported)
- `trimmed` (lexical_declaration, line 4, exported)
- `close` (lexical_declaration, line 8, exported)
- `after` (lexical_declaration, line 12, exported)

## Source

```typescript
import { LABEL_MARK, LABEL_SEPARATORS } from "#configuration/constants/tone.constants";

export const isLabelledItem = function isLabelledItem(text: string): boolean {
    const trimmed = text.trim();
    if (!trimmed.startsWith(LABEL_MARK)) {
        return false;
    }
    const close = trimmed.indexOf(LABEL_MARK, LABEL_MARK.length);
    if (close === -1) {
        return false;
    }
    const after = trimmed.slice(close + LABEL_MARK.length);
    return LABEL_SEPARATORS.some((separator) => after.startsWith(separator));
};
```
