word-breaker

A JS implementation of the Unicode Word Breaking algorithm in UAX14

Usage no npm install needed!

<script type="module">
  import wordBreaker from 'https://cdn.skypack.dev/word-breaker';
</script>

README

word-breaker

Implementation of the Unicode Word Boundary Rules algorithm (UAX29 4.1)

What are word boundaries used for?

  • When you double click a word inside your web browser, UAX29 sec 4 defines where the start and end of the selection should be
  • CSS's text-transform: uppercase
  • Can be used for search algorithms too