Skip to main content

Function: matchesAnyKeyword()

matchesAnyKeyword(input, keywords): boolean

Defined in: packages/core/src/skill.ts:203

Case-insensitive, boundary-aware match of any keyword/phrase against text. Boundaries are non-(letter|number) so multi-word phrases match correctly and "cat" does not fire inside "category". Exported for testing.

Parameters​

input​

string

keywords​

string[] | undefined

Returns​

boolean