spiegel-keyman/common/models/wordbreakers
2024-08-27 14:55:33 +07:00
..
src/main chore(web): Merge branch 'feat/web/wordbreaker-property-data-gen' into feat/web/wordbreaker-data-optimization 2024-08-08 12:56:46 +07:00
test fix(web): fixes wordbreaker test import path 2024-08-27 14:55:33 +07:00
tools/data-compiler Merge pull request #10692 from keymanapp/feat/web/wordbreaker-data-optimization 2024-08-27 10:19:25 +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): increase specificity in wordbreaker's .gitignore 2024-08-23 08:29:08 +07:00
build.sh chore(common/models): moves data-compiler artifacts to /tools subfolder 2024-08-26 09:26:08 +07:00
package.json chore(common/models): reorganize wordbreaker build outputs 2024-08-21 10:53:57 +07:00
README.md docs(common/models): Apply suggestions from code review 2020-05-19 15:30:43 -06:00
tsconfig.json chore(common/models): reorganize wordbreaker build outputs 2024-08-21 10:53: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', '!' ]