{"id":13413577,"url":"https://github.com/alexsergivan/transliterator","last_synced_at":"2026-02-05T06:33:47.078Z","repository":{"id":57529054,"uuid":"256523326","full_name":"alexsergivan/transliterator","owner":"alexsergivan","description":"Golang text Transliterator (i.e München -\u003e Muenchen)","archived":false,"fork":false,"pushed_at":"2024-06-05T12:34:35.000Z","size":230,"stargazers_count":41,"open_issues_count":2,"forks_count":10,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-07-31T20:52:34.222Z","etag":null,"topics":["ascii","go","golang","normalization","romanization","transliteration","transliterator","unidecode"],"latest_commit_sha":null,"homepage":"","language":"Go","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/alexsergivan.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":"2020-04-17T14:19:55.000Z","updated_at":"2024-06-04T21:46:25.000Z","dependencies_parsed_at":"2024-10-26T09:10:05.732Z","dependency_job_id":null,"html_url":"https://github.com/alexsergivan/transliterator","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/alexsergivan/transliterator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexsergivan%2Ftransliterator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexsergivan%2Ftransliterator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexsergivan%2Ftransliterator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexsergivan%2Ftransliterator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alexsergivan","download_url":"https://codeload.github.com/alexsergivan/transliterator/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexsergivan%2Ftransliterator/sbom","scorecard":{"id":182575,"data":{"date":"2025-08-11","repo":{"name":"github.com/alexsergivan/transliterator","commit":"ea2215d10f2379111c6c56a1fe7d66d4208ab973"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.2,"checks":[{"name":"Code-Review","score":1,"reason":"Found 2/11 approved changesets -- score normalized to 1","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 4 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-16T19:07:59.542Z","repository_id":57529054,"created_at":"2025-08-16T19:07:59.542Z","updated_at":"2025-08-16T19:07:59.542Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29114910,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-05T05:31:32.482Z","status":"ssl_error","status_checked_at":"2026-02-05T05:31:29.075Z","response_time":65,"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":["ascii","go","golang","normalization","romanization","transliteration","transliterator","unidecode"],"created_at":"2024-07-30T20:01:43.602Z","updated_at":"2026-02-05T06:33:47.063Z","avatar_url":"https://github.com/alexsergivan.png","language":"Go","funding_links":[],"categories":["Natural Language Processing","自然语言处理","Relational Databases","Microsoft Office","Bot Building","Repositories"],"sub_categories":["Uncategorized","音译","Transliteration","暂未分类","暂未分类这些库被放在这里是因为其他类别似乎都不适合。"],"readme":"Golang text Transliterator\n==============\n\n[![Build Status](https://travis-ci.com/alexsergivan/transliterator.svg?branch=master)](https://travis-ci.com/github/alexsergivan/transliterator)\n[![Coverage Status](https://coveralls.io/repos/github/alexsergivan/transliterator/badge.svg)](https://coveralls.io/github/alexsergivan/transliterator)\n[![Go Report Card](https://goreportcard.com/badge/github.com/alexsergivan/transliterator)](https://goreportcard.com/report/github.com/alexsergivan/transliterator)\n[![Codacy Badge](https://api.codacy.com/project/badge/Grade/9b062cd8ba9f4f7f850e167d6966b75b)](https://www.codacy.com/manual/alexsergivan/transliterator?utm_source=github.com\u0026amp;utm_medium=referral\u0026amp;utm_content=alexsergivan/transliterator\u0026amp;utm_campaign=Badge_Grade)\n\n\nGolang Transliterator provides one-way string transliteration. It takes Unicode text and converts to ASCII characters.\nExample use-case: transliterate cyrilic city name to be able to use it in the url (\"Київ\" ==\u003e \"Куiv\").\n\nFor now, only these languages have specific transliteration rules: DE, DA, EO, RU, BG, SV, HU, HR, SL, SR, NB, UK, MK, CA, BS. For other languages, general ASCII transliteration rules will be applied. Also, this package supports adding custom transliteration rules for your specific use-case. Please check the examples section below.\n\n\nInstallation\n------------\n\n```\ngo get -u github.com/alexsergivan/transliterator\n```\n\n\nLanguage specific transliteration example\n------\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"github.com/alexsergivan/transliterator\"\n)\n\nfunc main() {\n\ttrans := transliterator.NewTransliterator(nil)\n\ttext := \"München\"\n\t// Langcode should be provided accrding to ISO 639-1.\n\tfmt.Println(trans.Transliterate(text, \"de\")) // Result: Muenchen\n\tfmt.Println(trans.Transliterate(text, \"en\")) // Result: Munchen\n\n\tanotherText := \"你好\"\n\tfmt.Println(trans.Transliterate(anotherText, \"\")) // Result: Ni Hao\n\n\toneMoreText := \"Київ\"\n\tfmt.Println(trans.Transliterate(oneMoreText, \"uk\")) // Result: Kyiv\n\tfmt.Println(trans.Transliterate(oneMoreText, \"en\")) // Result: Kiyiv\n\tfmt.Println(trans.Transliterate(oneMoreText, \"\")) // Result: Kiyiv\n}\n```\n\nAdding of custom Language translitartion rules\n------\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"github.com/alexsergivan/transliterator\"\n)\n\nfunc main() {\n\tcustomLanguageOverrites := make(map[string]map[rune]string)\n\n\tcustomLanguageOverrites[\"myLangcode\"] = map[rune]string{\n\t\t// Ї\n\t\t0x407: \"CU\",\n\t\t// и\n\t\t0x438: \"y\",\n\t}\n\ttrans := transliterator.NewTransliterator(\u0026customLanguageOverrites)\n\ttext := \"КиЇв\"\n\tfmt.Println(trans.Transliterate(text, \"myLangcode\")) // Result: KyCUv\n\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexsergivan%2Ftransliterator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexsergivan%2Ftransliterator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexsergivan%2Ftransliterator/lists"}