Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

don't split combined emoji #21

Open
mesqueeb opened this issue Dec 3, 2022 · 0 comments
Open

don't split combined emoji #21

mesqueeb opened this issue Dec 3, 2022 · 0 comments

Comments

@mesqueeb
Copy link

mesqueeb commented Dec 3, 2022

  • input: πŸ„πŸΌβ€β™‚οΈ
  • expected output: πŸ„πŸΌβ€β™‚οΈ
  • actual output: β™‚β€πŸΌπŸ„

I wonder how you can achieve tokenising a combined emoji into 1 character.

This library seems to correctly do it for me:
https://github.com/bluelovers/runes

It will tokenise πŸ„πŸΌβ€β™‚οΈ as just 1 character. (it doesn't flip sentences though...)

BTW, do you consider extracting just the tokeniser part of this library without the reverse part into a separate NPM package?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant