Module

JS.Intl.Segmenter

Package
purescript-js-intl
Repository
pete-murphy/purescript-js-intl

#Segmenter Source

data Segmenter

For locale-sensitive text segmentation, enabling you to get meaningful items (graphemes, words or sentences) from a string.

#SegmenterOptions Source

type SegmenterOptions :: Row Typetype SegmenterOptions = (granularity :: String, localeMatcher :: String)

#segment Source

segment :: forall f. Unfoldable f => Segmenter -> String -> f Segment

Segments a string according to the locale and granularity of the Segmenter instance