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

adjust tag matching to better handle some eastern scripts #508

Merged
merged 1 commit into from
Feb 18, 2024

Conversation

asdfzdfj
Copy link
Contributor

@asdfzdfj asdfzdfj commented Feb 18, 2024

the current hashtags matching and normalizing works fine with latin scripts, but it often breaks when having to deal with e.g. Japanese hashtags, which can results in hashtags not being extracted properly or worse, the posts being dropped entirely

the hashtags matching has beed extended to allow for more characters to match, and normalization process has been adjusted to better handle nonlatin script (e.g. Japanese, Thai)

most of the process is a recreation of Mastodon hastags normalization process (see https://docs.joinmastodon.org/spec/activitypub/#Hashtag and the linked normalizer)

@asdfzdfj asdfzdfj force-pushed the fix/tag-matching-eastern-script branch from 58e8f0c to 70b0550 Compare February 18, 2024 13:11
the current hashtags matching and normalizing works fine with latin
scripts, but it often breaks when having to deal with e.g. Japanese
hashtags, which can results in hashtags not being extracted properly or
worse, the posts being dropped entirely

the hashtags matching has beed extended to allow for more characters to
match, and normalization process has been adjusted to better handle
nonlatin script (e.g. Japanese, Thai)

most of the process is a recreation of Mastodon hastags normalization process
@asdfzdfj asdfzdfj force-pushed the fix/tag-matching-eastern-script branch from 70b0550 to 094535a Compare February 18, 2024 14:01
@asdfzdfj asdfzdfj merged commit ff4d0ae into main Feb 18, 2024
7 checks passed
@asdfzdfj asdfzdfj deleted the fix/tag-matching-eastern-script branch February 18, 2024 14:11
andrewmoise pushed a commit to andrewmoise/mbin that referenced this pull request Feb 20, 2024
the current hashtags matching and normalizing works fine with latin
scripts, but it often breaks when having to deal with e.g. Japanese
hashtags, which can results in hashtags not being extracted properly or
worse, the posts being dropped entirely

the hashtags matching has beed extended to allow for more characters to
match, and normalization process has been adjusted to better handle
nonlatin script (e.g. Japanese, Thai)

most of the process is a recreation of Mastodon hastags normalization process
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

Successfully merging this pull request may close these issues.

None yet

2 participants