{"id":34113243,"url":"https://github.com/opencollector/jntajis-python","last_synced_at":"2026-03-09T11:06:27.313Z","repository":{"id":62572576,"uuid":"398192251","full_name":"opencollector/jntajis-python","owner":"opencollector","description":"A fast character conversion and transliteration library based on the scheme defined for Japan National Tax Agency (国税庁) 's corporate number (法人番号) system.","archived":false,"fork":false,"pushed_at":"2026-03-09T08:47:14.000Z","size":2199,"stargazers_count":21,"open_issues_count":1,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2026-03-09T08:54:49.527Z","etag":null,"topics":["citpc","corporate-number-system","encoding","ipa","japanese","national-tax-agency","nta","python","transliteration","unicode"],"latest_commit_sha":null,"homepage":"https://jntajis-python.readthedocs.io/","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/opencollector.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2021-08-20T07:26:25.000Z","updated_at":"2025-03-21T13:18:55.000Z","dependencies_parsed_at":"2022-11-03T18:27:20.353Z","dependency_job_id":null,"html_url":"https://github.com/opencollector/jntajis-python","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"purl":"pkg:github/opencollector/jntajis-python","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opencollector%2Fjntajis-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opencollector%2Fjntajis-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opencollector%2Fjntajis-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opencollector%2Fjntajis-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/opencollector","download_url":"https://codeload.github.com/opencollector/jntajis-python/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opencollector%2Fjntajis-python/sbom","scorecard":{"id":709051,"data":{"date":"2025-08-11","repo":{"name":"github.com/opencollector/jntajis-python","commit":"9016065edb3daa0ecb5ace165ef5a2e5cf49b28f"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.8,"checks":[{"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":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","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":"Code-Review","score":0,"reason":"Found 0/21 approved changesets -- score normalized to 0","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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/main.yml:1","Warn: no topLevel permission defined: .github/workflows/tests.yml:1","Warn: no topLevel permission defined: .github/workflows/wheels.yml:1","Info: no jobLevel write permissions found"],"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":"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":"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"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: BSD 3-Clause \"New\" or \"Revised\" 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":"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":"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":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"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 18 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":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tests.yml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/opencollector/jntajis-python/tests.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tests.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/opencollector/jntajis-python/tests.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/wheels.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/opencollector/jntajis-python/wheels.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/wheels.yml:25: update your workflow using https://app.stepsecurity.io/secureworkflow/opencollector/jntajis-python/wheels.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/wheels.yml:33: update your workflow using https://app.stepsecurity.io/secureworkflow/opencollector/jntajis-python/wheels.yml/main?enable=pin","Warn: pipCommand not pinned by hash: .github/workflows/tests.yml:20","Warn: pipCommand not pinned by hash: .github/workflows/wheels.yml:29","Info:   0 out of   5 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   2 pipCommand dependencies pinned"],"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"}}]},"last_synced_at":"2025-08-22T07:36:24.564Z","repository_id":62572576,"created_at":"2025-08-22T07:36:24.564Z","updated_at":"2025-08-22T07:36:24.564Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30291857,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-09T02:57:19.223Z","status":"ssl_error","status_checked_at":"2026-03-09T02:56:26.373Z","response_time":61,"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":["citpc","corporate-number-system","encoding","ipa","japanese","national-tax-agency","nta","python","transliteration","unicode"],"created_at":"2025-12-14T19:10:51.227Z","updated_at":"2026-03-09T11:06:27.304Z","avatar_url":"https://github.com/opencollector.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# jntajis-python\n\nDocumentation: https://jntajis-python.readthedocs.io/\n\n## What's JNTAJIS-python?\n\nJNTAJIS-python is a transliteration library, specifically designed for dealing with three different character sets; JIS X 0208, JIS X 0213, and Unicode.\n\n```python\nimport jntajis\n\nprint(jntajis.mj_shrink_candidates(\"髙島屋\", jntajis.MJShrinkSchemeCombo.JIS_INCORPORATION_UCS_UNIFICATION_RULE))  # outputs [\"高島屋\", \"髙島屋\"]\nprint(jntajis.jnta_shrink_translit(\"麴町\"))  # outputs \"麹町\"\n```\n\nTo that end, this library refers to three different character tables; MJ character table, MJ shrink conversion map, and NTA shrink conversion map.\n\nThe MJ character table (*MJ文字一覧表*) defines a vast set of kanji (*漢字*) characters used in information processing of Japanese texts initially developed by Information-technology Promotion Agency.\n\nThe MJ shrink conversion map (*MJ縮退マップ*) was also developed alongside for the sake of interoperability between MJ-aware systems and systems based on Unicode, which is used to transliterate complex, less-frequently-used character variants to commonly-used, more-used ones.\n\nThe NTA shrink conversion map (*国税庁JIS縮退マップ*) was developed by Japan National Tax Agency to canonicalize user inputs for its corporation number search service provided as a public web API.  This maps JIS level 3 and 4 characters to JIS level 1 and 2 characters (i.e. characters defined in JIS X 0208.)  Note that not all level 3 and level 4 characters have level 1 and 2 counterparts.  Also note that some of level 3 and 4 characters don't map to a single character one by each.  Instead, they map to sequences of two or more characters.\n\nThe table below shows some examples of transliteration by the MJ character table suite and NTA shrink conversion map.\n\n| Glyph | MJ code | Unicode | JIS X 0213 | Glyph\\* | MJ code\\* | JIS X 0208\\* | Transliterator |\n| ----- | ------- | ------- | ---------- | ------ | ------- | ---------- | -------------- | \n| ![棃](https://moji.or.jp/mojikibansearch/img/MJ/MJ014031.png) | MJ014031 | U+68C3 | 2-14-90 | ![梨](https://moji.or.jp/mojikibansearch/img/MJ/MJ014007.png) | MJ014007 | 1-45-92 | MJ / JNTA |\n| ![﨑](https://moji.or.jp/mojikibansearch/img/MJ/MJ030196.png) | MJ030196 | U+FA11 | 1-47-82 | ![崎](https://moji.or.jp/mojikibansearch/img/MJ/MJ010541.png) | MJ010541 | 1-26-74 | MJ / JNTA |\n| ![髙](https://moji.or.jp/mojikibansearch/img/MJ/MJ028902.png) | MJ028902 | U+9AD9 | N/A | ![高](https://moji.or.jp/mojikibansearch/img/MJ/MJ028901.png) | MJ028901 | 1-25-66 | MJ |\n\nThe conversion schematics is shown below:\n\n![](https://github.com/opencollector/jntajis-python/raw/main/docs/source/_static/images/mj-jnta.svg)\n\n* JNTA transliteration\n\n    As every JIS X 0213 characters maps to its Unicode counterpart, the conversion is done only with the single JNTA character mappings table.\n\n* MJ transliteration\n\n    Transliteration is done in two phases:\n\n    1. Conversion from Unicode to MJ character mappings.\n\n        While not all characters in the MJ characters table map to Unicode, each MJ code has different shrink mappings. Because of this, the transliterator tries to convert Unicode codepoints to MJ codes first.\n\n    2. Transliteration by MJ shrink mappings.\n\n        The transliteration result as a string isn't necessarily single as some MJ codes have more than one transliteration candidate. This happens because a) a Unicode codepoint may map to multiple MJ codes and b) multiple transliteration schemes are designated to a single MJ code.\n\n\nRelationship between Unicode, MJ character mappings, JIS X 0213, and JIS X 0208 can be depicted as follows:\n\n![](https://github.com/opencollector/jntajis-python/raw/main/docs/source/_static/images/relationships-character-mappings.svg)\n\n## License\n\nThe source code except `src/jntajis/_jntajis.h` is published under the BSD 3-clause license.\n\n`src/jntajis/_jntajis.h` contains the data from the following entities:\n\n* JIS shrink conversion mappings (国税庁: JIS縮退マップ)\n\n  Publisher: National Tax Agency\n\n  Author: National Tax Agency\n\n  Source: https://www.houjin-bangou.nta.go.jp/download/\n\n  License: CC BY 4.0\n\n* MJ character table (文字情報技術促進協議会: MJ文字一覧表)\n\n  Publisher: Character Information Technology Promotion Council (CITPC)\n\n  Author: Information-technology Promotion Agency (IPA)\n\n  Source: https://moji.or.jp/mojikiban/mjlist/\n\n  License: CC BY-SA 2.1 JP\n\n* MJ shrink conversion mappings (文字情報技術促進協議会: MJ縮退マップ)\n\n  Publisher: Character Information Technology Promotion Council (CITPC)\n\n  Author: Information-technology Promotion Agency (IPA)\n\n  Source: https://moji.or.jp/mojikiban/map/ \n\n  License: CC BY-SA 2.1 JP\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopencollector%2Fjntajis-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopencollector%2Fjntajis-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopencollector%2Fjntajis-python/lists"}