@predictive-text-studio/models-wordbreakers
v14.0.0-alpha.0
Published
Word breakers bundled in the modeling layer
Downloads
6
Maintainers
Readme
@keymanapp/models-wordbreakers
The word breakers bundled in Keyman's modeling layer (common/models).
Includes:
default
— a word breaker based on the Unicode default word boundary specification- deprecated
ascii
— an example word breaker - deprecated
placeholder
— an example word breaker
Usage
import {wordBreakers} from '@keymanapp/models-wordbreakers';
const breakWords = wordBreakers['default'];
console.log(breakWords('Hello, World!').map(span => span.text));
// prints: [ 'Hello', ',', 'World', '!' ]