UNPKG

tokenize-words

Version:
18 lines (15 loc) 397 B
type optionsType = Partial<{ lengthMin: number; }>; /** * Break down text string into array of words. * @param text * @param optionsArg Miscellaneous options. * @throws Error if `wordsArray` length is less than `options.lengthMin`. * @returns Array of words. */ declare function tokenizeWords( text: string, optionsArg?: optionsType ): string[]; export { tokenizeWords as default };