Skip to content
1 min read · 78 words

Function: foldVerb() ​

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

Defined in: src/batteries/media/verbs.ts:814

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

Parameters ​

ParameterTypeDescription
wordsstring[]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.