{"id":13589088,"url":"https://github.com/seanghay/khmertokenizer","last_synced_at":"2026-05-20T09:11:24.422Z","repository":{"id":157986582,"uuid":"633758059","full_name":"seanghay/khmertokenizer","owner":"seanghay","description":"A fast Khmer text tokenizer that ensures the all characters are included in the process.","archived":false,"fork":false,"pushed_at":"2023-04-29T06:13:10.000Z","size":22,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-05T12:05:01.532Z","etag":null,"topics":["khmer","nodejs","tokenizer"],"latest_commit_sha":null,"homepage":"https://npmjs.com/package/khmertokenizer","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/seanghay.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}},"created_at":"2023-04-28T08:01:35.000Z","updated_at":"2025-02-18T16:12:45.000Z","dependencies_parsed_at":"2023-07-09T23:46:33.333Z","dependency_job_id":null,"html_url":"https://github.com/seanghay/khmertokenizer","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/seanghay/khmertokenizer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seanghay%2Fkhmertokenizer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seanghay%2Fkhmertokenizer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seanghay%2Fkhmertokenizer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seanghay%2Fkhmertokenizer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/seanghay","download_url":"https://codeload.github.com/seanghay/khmertokenizer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seanghay%2Fkhmertokenizer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33253228,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-20T04:48:54.280Z","status":"ssl_error","status_checked_at":"2026-05-20T04:48:10.851Z","response_time":356,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["khmer","nodejs","tokenizer"],"created_at":"2024-08-01T16:00:22.613Z","updated_at":"2026-05-20T09:11:24.404Z","avatar_url":"https://github.com/seanghay.png","language":"JavaScript","funding_links":[],"categories":["Awesome Khmer Language"],"sub_categories":["2. Toolkit"],"readme":"## Khmer Tokenizer\n\nA fast Khmer text tokenizer that ensures all characters are included in the process.\n\n[Web demo](https://khmertokenizer.netlify.app/)\n\n```js\nimport { tokenize } from 'khmertokenizer';\n\ntokenize(\"ភាសាខ្មែរ១២ 123 ABC\")\n// =\u003e [\"ភា\",\"សា\",\"ខ្មែ\",\"រ\",\"១\",\"២\",\" \",\"1\",\"2\",\"3\",\" \",\"A\",\"B\",\"C\"]\n```\n\n### Iterator\n\n```js\nimport { tokenizeAsIterator } from 'khmertokenizer';\n\nfor (const c of tokenizeAsIterator(\"ភាសាខ្មែរ១២ 123 ABC\")) {\n  console.log(c);\n}\n```\n\n### Grapheme Validation\n\n```js\nimport { tokenize, isInvalidKhmerGrapheme } from 'khmertokenizer';\n\nconst input = \"ភាសាខ្មែរ១២ 123 ABC ២ ៗាា\"\nconst output = tokenize(input)\n  .filter(c =\u003e !isInvalidKhmerGrapheme(c)) // remove invalid graphemes\n  .join(\"\")\n\n//=\u003e \"ភាសាខ្មែរ១២ 123 ABC ២ ៗ\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseanghay%2Fkhmertokenizer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fseanghay%2Fkhmertokenizer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseanghay%2Fkhmertokenizer/lists"}