How to split JavaScript strings into sentences, words or graphemes with "Intl.Segmenter"
How to split JavaScript strings into sentences, words or graphemes with "Intl.Segmenter"
www.stefanjudis.com How to split JavaScript strings into sentences, words or graphemes with "Intl.Segmenter"
`Intl.Segmenter` enables you to split strings into meaningful parts such as words, sentences and graphemes.
1
comments
"First, dump to a file, then use Python's str.Split('.')." :P
I kid. I may hate JS but I'm grateful for people who post these guides when I am forced to use it.
2 0 Reply