{"id":37028310,"url":"https://github.com/encryptorcode/pluralize","last_synced_at":"2026-01-14T03:22:47.372Z","repository":{"id":57733131,"uuid":"251187418","full_name":"encryptorcode/pluralize","owner":"encryptorcode","description":"Pluralize and singularize any word.","archived":false,"fork":false,"pushed_at":"2020-10-13T20:45:43.000Z","size":23,"stargazers_count":6,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-06T21:07:39.694Z","etag":null,"topics":["nlp","pluralize","plurals"],"latest_commit_sha":null,"homepage":null,"language":"Java","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/encryptorcode.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}},"created_at":"2020-03-30T03:03:41.000Z","updated_at":"2024-08-02T07:36:27.000Z","dependencies_parsed_at":"2022-09-26T22:11:15.633Z","dependency_job_id":null,"html_url":"https://github.com/encryptorcode/pluralize","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/encryptorcode/pluralize","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/encryptorcode%2Fpluralize","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/encryptorcode%2Fpluralize/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/encryptorcode%2Fpluralize/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/encryptorcode%2Fpluralize/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/encryptorcode","download_url":"https://codeload.github.com/encryptorcode/pluralize/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/encryptorcode%2Fpluralize/sbom","scorecard":{"id":376719,"data":{"date":"2025-08-11","repo":{"name":"github.com/encryptorcode/pluralize","commit":"5484c321dbf982fac4c3750830b95b17cad31931"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"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":"Code-Review","score":0,"reason":"Found 0/5 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":"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":"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":"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":"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":"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":"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 3 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"}}]},"last_synced_at":"2025-08-18T14:25:53.163Z","repository_id":57733131,"created_at":"2025-08-18T14:25:53.169Z","updated_at":"2025-08-18T14:25:53.169Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28408828,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T01:52:23.358Z","status":"online","status_checked_at":"2026-01-14T02:00:06.678Z","response_time":107,"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":["nlp","pluralize","plurals"],"created_at":"2026-01-14T03:22:46.727Z","updated_at":"2026-01-14T03:22:47.363Z","avatar_url":"https://github.com/encryptorcode.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pluralize\n\n[![Maven Central](https://img.shields.io/maven-central/v/io.github.encryptorcode/pluralize)](https://mvnrepository.com/artifact/io.github.encryptorcode/pluralize)\n[![Build Status](https://travis-ci.org/encryptorcode/pluralize.svg?branch=master)](https://travis-ci.org/encryptorcode/pluralize)\n[![Coverage Status](https://coveralls.io/repos/github/encryptorcode/pluralize/badge.svg?branch=master)](https://coveralls.io/github/encryptorcode/pluralize?branch=master)\n[![GitHub license](https://img.shields.io/github/license/encryptorcode/pluralize)](https://github.com/encryptorcode/pluralize/blob/master/LICENSE)\n\n\u003e Pluralize and singularize any word.\n\n## Installation\n\n### Maven\n\n```xml\n\u003cdependency\u003e\n  \u003cgroupId\u003eio.github.encryptorcode\u003c/groupId\u003e\n  \u003cartifactId\u003epluralize\u003c/artifactId\u003e\n  \u003cversion\u003e${pluralize.version}\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n## Why?\n\nThis module uses a pre-defined list of rules, applied in order, to singularize or pluralize a given word. There are many cases where this is useful, such as any automation based on user input. For applications where the word(s) are known ahead of time, you can use a simple ternary (or function) which would be a much lighter alternative.\n\n## Usage\n\n* `word: string` The word to pluralize\n* `count: number` How many of the word exist\n* `inclusive: boolean` Whether to prefix with the number (e.g. 3 ducks)\n\nExamples:\n\n```java\nimport io.github.encryptorcode.pluralize.Pluralize;\nimport static io.github.encryptorcode.pluralize.Pluralize.*;\n\npublic class Example{\n    public static void main(String[] args){\n        pluralize(\"test\"); //=\u003e \"tests\"\n        pluralize(\"test\", 0); //=\u003e \"tests\"\n        pluralize(\"test\", 1); //=\u003e \"test\"\n        pluralize(\"test\", 5); //=\u003e \"tests\"\n        pluralize(\"test\", 1, true); //=\u003e \"1 test\"\n        pluralize(\"test\", 5, true); //=\u003e \"5 tests\"\n        pluralize(\"蘋果\", 2, true); //=\u003e \"2 蘋果\"\n\n        // Example of new plural rule:\n        Pluralize.plural(\"regex\"); //=\u003e \"regexes\"\n        Pluralize.addPluralRule(p(\"gex$\"), \"gexii\");\n        Pluralize.plural(\"regex\"); //=\u003e \"regexii\"\n\n        // Example of new singular rule:\n        Pluralize.singular(\"singles\"); //=\u003e \"single\"\n        Pluralize.addSingularRule(p(\"singles\"), \"singular\");\n        Pluralize.singular(\"singles\"); //=\u003e \"singular\"\n\n        // Example of new irregular rule, e.g. \"I\" -\u003e \"we\":\n        Pluralize.plural(\"irregular\"); //=\u003e \"irregulars\"\n        Pluralize.addIrregularRule(\"irregular\", \"regular\");\n        Pluralize.plural(\"irregular\"); //=\u003e \"regular\"\n\n        // Example of uncountable rule (rules without singular/plural in context):\n        Pluralize.plural(\"paper\"); //=\u003e \"papers\"\n        Pluralize.addUncountableRule(\"paper\");\n        Pluralize.plural(\"paper\"); //=\u003e \"paper\"\n\n        // Example of asking whether a word looks singular or plural:\n        Pluralize.isPlural(\"test\"); //=\u003e false\n        Pluralize.isSingular(\"test\"); //=\u003e true\n    }\n}\n```\n\n## Credits\nThe actual javascript version of this library is maintained at [blakeembrey/pluralize](https://github.com/blakeembrey/pluralize).\nI've only helped to translate the code to Java. Also, I assure to have the least deviations from the actual code written and maintained by [@blakeembrey](https://github.com/blakeembrey)\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fencryptorcode%2Fpluralize","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fencryptorcode%2Fpluralize","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fencryptorcode%2Fpluralize/lists"}