Skip to content
#

intl-segmenter

Here is 1 public repository matching this topic...

A high-performance wrapper around Intl.Segmenter for efficient text segmentation. This class resolves memory handling issues seen with large strings and "maximum call stack exceeded" exceptions that occur when strings exceed 40-50k characters. Enhances performance by 50-500x. Only ~70 loc (with comments) and no dependencies.

  • Updated Jan 26, 2025
  • JavaScript

Improve this page

Add a description, image, and links to the intl-segmenter topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the intl-segmenter topic, visit your repo's landing page and select "manage topics."

Learn more