GitHub / jonschlinkert / intl-segmenter
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.
JSON API: http://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonschlinkert%2Fintl-segmenter
Stars: 10
Forks: 1
Open issues: 1
License: None
Language: JavaScript
Size: 43.9 KB
Dependencies parsed at: Pending
Created at: 3 months ago
Updated at: about 1 month ago
Pushed at: 3 months ago
Last synced at: 10 days ago
Topics: graphemes, intl, intl-segmenter, processing, segment, segmenter, sentences, splitter, text, words
Funding Links https://github.com/sponsors/jonschlinkert