spiegel-keyman/common/models/wordbreakers
2024-08-08 13:07:56 +07:00
..
src/main chore(common/models): removes incomplete early check-in 2024-08-08 12:53:04 +07:00
test chore(common/models): models-wordbreakers import pathing 2023-02-03 14:03:30 +07:00
tools/data-compiler change(common/models): moves wordbreaker data-gen from src/ to tools/, removes old data.ts 2024-08-08 12:51:30 +07:00
.c8rc.json fix(common/web): fixed sourcemap path rooting issues, dropped unused worker products 2023-06-12 14:45:48 +07:00
.gitignore change(common/models): moves wordbreaker data-gen from src/ to tools/, removes old data.ts 2024-08-08 12:51:30 +07:00
build.sh change(web): Unicode data-fetcher build.sh -> download.sh 2024-08-08 13:07:56 +07:00
package.json fix(common): fix data-compiler path references 2024-08-07 08:36:17 +07:00
README.md docs(common/models): Apply suggestions from code review 2020-05-19 15:30:43 -06:00
tsconfig.json fix(common/models): fix tsconfig issue from this PR's changes 2024-08-07 08:34:57 +07:00

@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', '!' ]