UNPKG

@predictive-text-studio/lexical-model-compiler

Version:
10 lines (9 loc) 426 B
/// <reference types="models-types" /> /** * Returns a word breaker that joins spans of an existing word breaker. * Spans are joined if they are connected by a delimiter. * * @param breaker The word breaker whose results will be decorated. * @param joiners What delimiters should be used to join spans. */ export declare function decorateWithJoin(breaker: WordBreakingFunction, joiners: string[]): WordBreakingFunction;