# core/normalizers/sentence.normalizer.ts

> 13 lines of code and 4 definitions.

Tree: Bane's Lab Content
Language: typescript
Layer: processing
Canonical: https://banes-lab.com/anatomy/content#file-content-core-normalizers-sentence-normalizer-ts
Source text: https://banes-lab.com/source/content/core/normalizers/sentence.normalizer.ts.txt

Listed in [core/normalizers](https://banes-lab.com/api/source/content/core/normalizers.md), after [core/normalizers/readme.normalizer.ts](https://banes-lab.com/source/content/core/normalizers/readme.normalizer.ts.md) and before [core/normalizers/word.normalizer.ts](https://banes-lab.com/source/content/core/normalizers/word.normalizer.ts.md).

## Definitions

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

## Contained in

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

## Source

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

export const isLabeledItem = function isLabeledItem(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));
};
```
