tokenize-words
Version:
Break down text into array of words.
18 lines (15 loc) • 397 B
TypeScript
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 };