{"id":19791723,"url":"https://github.com/santhoshtr/cldrpluralruleparser","last_synced_at":"2026-04-28T08:03:51.974Z","repository":{"id":3560354,"uuid":"4621800","full_name":"santhoshtr/CLDRPluralRuleParser","owner":"santhoshtr","description":"CLDR Plural Rule Parser","archived":false,"fork":false,"pushed_at":"2026-04-28T07:10:55.000Z","size":568,"stargazers_count":20,"open_issues_count":0,"forks_count":14,"subscribers_count":5,"default_branch":"master","last_synced_at":"2026-04-28T07:24:02.510Z","etag":null,"topics":["cldr","parser","plural-rules"],"latest_commit_sha":null,"homepage":"https://santhoshtr.github.io/CLDRPluralRuleParser/demo","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/santhoshtr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2012-06-11T06:42:20.000Z","updated_at":"2026-04-28T07:03:48.000Z","dependencies_parsed_at":"2024-06-18T16:41:53.674Z","dependency_job_id":"36ec1522-2075-4945-aaee-fa0bb66ebb61","html_url":"https://github.com/santhoshtr/CLDRPluralRuleParser","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/santhoshtr/CLDRPluralRuleParser","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/santhoshtr%2FCLDRPluralRuleParser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/santhoshtr%2FCLDRPluralRuleParser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/santhoshtr%2FCLDRPluralRuleParser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/santhoshtr%2FCLDRPluralRuleParser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/santhoshtr","download_url":"https://codeload.github.com/santhoshtr/CLDRPluralRuleParser/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/santhoshtr%2FCLDRPluralRuleParser/sbom","scorecard":{"id":799944,"data":{"date":"2025-08-11","repo":{"name":"github.com/santhoshtr/CLDRPluralRuleParser","commit":"df4dc58156b5ea60d250cf339b6804d4a28f1957"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"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":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/node.js.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":"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":"Code-Review","score":0,"reason":"Found 1/22 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":"Pinned-Dependencies","score":3,"reason":"dependency not pinned by hash detected -- score normalized to 3","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/node.js.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/santhoshtr/CLDRPluralRuleParser/node.js.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/node.js.yml:25: update your workflow using https://app.stepsecurity.io/secureworkflow/santhoshtr/CLDRPluralRuleParser/node.js.yml/master?enable=pin","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   1 out of   1 npmCommand 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"}},{"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.txt:0","Info: FSF or OSI recognized license: MIT License: LICENSE.txt: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":-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 13 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":0,"reason":"12 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-wf5p-g6vw-rhxx","Warn: Project is vulnerable to: GHSA-jr5f-v2jv-69x6","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-67mh-4wv8-2f99","Warn: Project is vulnerable to: GHSA-jchw-25xp-jwwc","Warn: Project is vulnerable to: GHSA-cxjh-pqwp-8mfp","Warn: Project is vulnerable to: GHSA-mwcw-c2x4-8c55","Warn: Project is vulnerable to: GHSA-gcx4-mw62-g8wm","Warn: Project is vulnerable to: GHSA-76p7-773f-r4q5"],"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-23T10:09:50.828Z","repository_id":3560354,"created_at":"2025-08-23T10:09:50.829Z","updated_at":"2025-08-23T10:09:50.829Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32371677,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-27T20:07:02.737Z","status":"online","status_checked_at":"2026-04-28T02:00:07.250Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["cldr","parser","plural-rules"],"created_at":"2024-11-12T07:04:40.351Z","updated_at":"2026-04-28T08:03:51.912Z","avatar_url":"https://github.com/santhoshtr.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CLDR Plural Rule Evaluator\n\nFind out the plural form for a given number in a language\n\n[![NPM version](https://badge.fury.io/js/cldrpluralruleparser.svg)](https://www.npmjs.org/package/cldrpluralruleparser)\n[![Node.js CI](https://github.com/santhoshtr/CLDRPluralRuleParser/actions/workflows/node.js.yml/badge.svg)](https://github.com/santhoshtr/CLDRPluralRuleParser/actions/workflows/node.js.yml)\n\n## Quick start\n\n```bash\ngit clone https://github.com/santhoshtr/CLDRPluralRuleParser.git\nnpm install\n```\n\n## Documentation\n\nUnlike English, for many languages, the plural forms are just not 2 forms.\nIf you look at the [CLDR plural rules table](http://unicode.org/repos/cldr-tmp/trunk/diff/supplemental/language_plural_rules.html#pl)\nyou can easily understand this. The rules are defined in a particular syntax\n(an eg: for Russian, the plural few is applied when the rule\n`n mod 10 in 2..4 and n mod 100 not in 12..14;` is passed).\n\nThis tool is a demonstration of a [javascript parser](./src/CLDRPluralRuleParser.js)\nfor the plural rules in that syntax.\n\nFor a given number in a language, this tool tells which plural form it belongs.\nThe plural rules are taken from the CLDR data file.\n\n## Test\n\n```bash\nnpm test\n```\n\n## Node module\n\nThis is also available as a node module. You can install it using:\n\n```bash\nnpm install cldrpluralruleparser\n```\n\nOnce installed it provides a command line utility named `cldrpluralruleparser` too.\n\n```bash\n$ cldrpluralruleparser 'n is 1' 0\nfalse\n```\n\n## CLDR Version compatibility\n\nThis parser is expected to handle latest version of CLDR spec for plurals and data from latest version.\nThis is tested by running all rules of plurals.json with the parser.\n\n**Maintainers Note**\n\nDownload latest plural.json from CLDR Json releases from https://github.com/unicode-org/cldr-json\nand replace demo/plurals.json and run `npm run test`. All tests should pass. If CLDR updates the spec,\nand plurals.json has unsupported rules, tests will fail and we need to update the parser.\n\n\n## Reference\n\n* https://cldr.unicode.org/index/cldr-spec/plural-rules\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsanthoshtr%2Fcldrpluralruleparser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsanthoshtr%2Fcldrpluralruleparser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsanthoshtr%2Fcldrpluralruleparser/lists"}