View as Markdown

API reference: @salmonui/mcp

tokenizefunction

import { tokenize } from '@salmonui/mcp';
function tokenize(text: string): string[];

Lower-case word stems of a text. Identifiers also yield their camelCase and kebab-case parts (onValueChange -> onvaluechange, on, value, change).