{"id":16689588,"url":"https://github.com/sigpwned/uax29","last_synced_at":"2025-07-16T02:37:31.131Z","repository":{"id":65507913,"uuid":"527344759","full_name":"sigpwned/uax29","owner":"sigpwned","description":"Java implementation of UAX#29 text segmentation algorithm","archived":false,"fork":false,"pushed_at":"2024-01-17T16:58:53.000Z","size":368,"stargazers_count":0,"open_issues_count":4,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-20T14:53:17.835Z","etag":null,"topics":["java","text-segmentation","uax29","unicode"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sigpwned.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-08-21T22:51:07.000Z","updated_at":"2024-10-17T15:02:13.000Z","dependencies_parsed_at":"2023-02-09T12:31:52.312Z","dependency_job_id":"ac153537-6b00-4da3-aeb5-ef416f4af31e","html_url":"https://github.com/sigpwned/uax29","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sigpwned%2Fuax29","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sigpwned%2Fuax29/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sigpwned%2Fuax29/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sigpwned%2Fuax29/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sigpwned","download_url":"https://codeload.github.com/sigpwned/uax29/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243467024,"owners_count":20295309,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["java","text-segmentation","uax29","unicode"],"created_at":"2024-10-12T15:48:40.869Z","updated_at":"2025-03-13T19:15:17.576Z","avatar_url":"https://github.com/sigpwned.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# UAX29 [![tests](https://github.com/sigpwned/uax29/actions/workflows/tests.yml/badge.svg)](https://github.com/sigpwned/uax29/actions/workflows/tests.yml) [![Security Rating](https://sonarcloud.io/api/project_badges/measure?project=sigpwned_uax29\u0026metric=security_rating)](https://sonarcloud.io/summary/new_code?id=sigpwned_uax29) [![Maintainability Rating](https://sonarcloud.io/api/project_badges/measure?project=sigpwned_uax29\u0026metric=sqale_rating)](https://sonarcloud.io/summary/new_code?id=sigpwned_uax29) [![Reliability Rating](https://sonarcloud.io/api/project_badges/measure?project=sigpwned_uax29\u0026metric=reliability_rating)](https://sonarcloud.io/summary/new_code?id=sigpwned_uax29) [![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.sigpwned/uax29/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.sigpwned/uax29)\n\nJava implementation of [UAX #29 text segmentation algorithm](https://unicode.org/reports/tr29/), plus token types for URLs, emoji, emails, hashtags, cashtags, and mentions.\n\n# Usage\n\nThe tokenizer produces the following token types:\n\n* `ALPHANUM` -- A sequence of alphabetic and numeric characters, e.g., hello, test123\n* `NUM` -- A number, e.g., 123\n* `SOUTHEAST_ASIAN` -- A sequence of characters from South and Southeast Asian languages, including Thai, Lao, Myanmar, and Khmer\n* `IDEOGRAPHIC` -- A single CJKV ideographic character\n* `HIRAGANA` -- A single hiragana character\n* `KATAKANA` -- A sequence of katakana characters\n* `HANGUL` -- A sequence of Hangul characters\n* `URL` -- A URL, e.g., https://www.example.com/\n* `EMAIL` -- An email address or mailto link, e.g., info@example.com\n* `EMOJI` -- A sequence of Emoji characters, e.g., 🙂\n* `HASHTAG` -- A social media hashtag, e.g., #hashtag\n* `CASHTAG` -- A social media cashtag, e.g., $CASH\n* `MENTION` -- A social media mention, e.g., @twitter\n\nTo process text into tokens, use code like the following:\n\n    try (UAX29URLEmailTokenizer tokenizer=new UAX29URLEmailTokenizer(\"example text\")) {\n        for(Token token=tokenizer.nextToken();token!=null;token=tokenizer.nextToken(token)) {\n            // Process the token here\n        }\n    }\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsigpwned%2Fuax29","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsigpwned%2Fuax29","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsigpwned%2Fuax29/lists"}