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

# Function: suggestVerbs()

```ts
function suggestVerbs(input: string, candidates: readonly string[]): string[];
```

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

Suggest the nearest verbs to an unknown input, for did-you-mean errors. Matches whole folded
forms AND suffix words (`resize` suggests `image resize`), per the frozen error model.

## Parameters

| Parameter    | Type                | Description                                                                                     |
| ------------ | ------------------- | ----------------------------------------------------------------------------------------------- |
| `input`      | `string`            | The unknown verb text as written.                                                               |
| `candidates` | readonly `string`\[] | The folded verb forms to search (pass the narrowed set to avoid suggesting unconfigured verbs). |

## Returns

`string`\[]

Up to three suggestions, best first.
