Share via


TokenizerFunction type

Signature for an alternate word breaker.

type TokenizerFunction = (text: string, locale?: string) => Token[]