Function: suggestVerbs()
ts
function suggestVerbs(input: string, candidates: readonly string[]): string[];Defined in: src/batteries/media/verbs.ts:836
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.