---
url: 'https://adk.nht.io/api/@nhtio/adk/batteries/media/forge/functions/foldVerb.md'
---

# Function: foldVerb()

```ts
function foldVerb(words: string[]): string | undefined;
```

Defined in: [src/batteries/media/verbs.ts:799](https://github.com/NHTIO/ADK/blob/v1.20260713.1/src/src/batteries/media/verbs.ts#L799)

Fold a verb token sequence to canonical form: lowercase, separators (space/`_`/`.`)
normalized so `extract_text` ≡ `extract text` ≡ `extract.text` all match `extract.text`.

## Parameters

| Parameter | Type       | Description                                                                  |
| --------- | ---------- | ---------------------------------------------------------------------------- |
| `words`   | `string`\[] | The verb word tokens as written (1 or 2 words, possibly containing `_`/`.`). |

## Returns

`string` | `undefined`

The canonical verb id when a fold-match exists, otherwise `undefined`.
