You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As described in #4184, the value of isWordLike in the output of Segmenter::segment() is almost always true (the exception being newlines). This does not match the behaviour present in Node.js and Chrome (ICU4C), and Firefox Nightly (ICU4X).
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Which package?
@formatjs/intl-segmenter
Describe the bug
As described in #4184, the value of
isWordLike
in the output ofSegmenter::segment()
is almost alwaystrue
(the exception being newlines). This does not match the behaviour present in Node.js and Chrome (ICU4C), and Firefox Nightly (ICU4X).To Reproduce
Codesandbox URL
https://codesandbox.io/p/sandbox/dank-smoke-cv9hl7
Reproducible Steps/Repo
Steps to reproduce the behavior:
Intl.Segmenter
in Chrome or Node.js or Firefox NightlyExpected behavior
FormatJS' polyfill matches Intl.Segmenter, in that it marks punctuation as non-word-like
The text was updated successfully, but these errors were encountered: