{"id":16158154,"url":"https://github.com/typeofweb/polish-plurals","last_synced_at":"2025-09-12T21:33:19.467Z","repository":{"id":44440177,"uuid":"118493011","full_name":"typeofweb/polish-plurals","owner":"typeofweb","description":"Package for generating correct plurals in Polish.","archived":false,"fork":false,"pushed_at":"2023-03-01T13:54:27.000Z","size":124,"stargazers_count":57,"open_issues_count":4,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-29T03:03:15.304Z","etag":null,"topics":["grammar","l20n","language","polish"],"latest_commit_sha":null,"homepage":"https://typeofweb.com/2018/01/22/odmiana-rzeczownikow-przy-liczebnikach-jezyku-polskim/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/typeofweb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2018-01-22T17:49:02.000Z","updated_at":"2024-09-05T12:03:34.000Z","dependencies_parsed_at":"2024-05-04T22:23:09.632Z","dependency_job_id":"cedc61f0-46ed-44d3-80bc-d7be5b306d35","html_url":"https://github.com/typeofweb/polish-plurals","commit_stats":null,"previous_names":["typeofweb/polish-plurals","mmiszy/polish-plurals"],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/typeofweb%2Fpolish-plurals","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/typeofweb%2Fpolish-plurals/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/typeofweb%2Fpolish-plurals/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/typeofweb%2Fpolish-plurals/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/typeofweb","download_url":"https://codeload.github.com/typeofweb/polish-plurals/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":232792154,"owners_count":18577263,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["grammar","l20n","language","polish"],"created_at":"2024-10-10T01:53:08.089Z","updated_at":"2025-01-06T22:01:40.428Z","avatar_url":"https://github.com/typeofweb.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `polish-plurals`\n[![npm version](https://badge.fury.io/js/polish-plurals.svg)](https://badge.fury.io/js/polish-plurals)\n[![Build Status](https://travis-ci.org/mmiszy/polish-plurals.svg?branch=master)](https://travis-ci.org/mmiszy/polish-plurals)\n[![Coverage Status](https://coveralls.io/repos/github/mmiszy/polish-plurals/badge.svg?branch=master)](https://coveralls.io/github/mmiszy/polish-plurals?branch=master)\n[![Dependency Status](https://david-dm.org/mmiszy/polish-plurals.svg)](https://david-dm.org/mmiszy/polish-plurals)\n[![devDependencies Status](https://david-dm.org/mmiszy/polish-plurals/dev-status.svg)](https://david-dm.org/mmiszy/polish-plurals?type=dev)\n\n# Description\nPackage meant mostly for Polish users who are looking for the simplest way to use nouns with numbers in Polish correctly.\n\nThis package takes into account complicated Polish grammar rules and allows you to specify different forms – 1 singular and 2 plural — of nouns to be used.\n\n## Usage\n\nIn the simplest case you need to provide 3 forms of the noun and a number. Those 3 required forms are:\n\n* singular nominative\n* plural nominative\n* plural genitive\n\n```javascript\nimport { polishPlurals } from 'polish-plurals';\n\npolishPlurals(\"komentarz\", \"komentarze\", \"komentarzy\", 1); // komentarz\npolishPlurals(\"komentarz\", \"komentarze\", \"komentarzy\", 0); // komentarzy\npolishPlurals(\"komentarz\", \"komentarze\", \"komentarzy\", 3); // komentarze\n```\n\n### Binding\nYou might consider `bind`ing the function to save some typing and avoid repetition:\n\n```javascript\nimport { polishPlurals } from 'polish-plurals';\n\nconst commentsLabel = polishPlurals.bind(null, 'komentarz', 'komentarze', 'komentarzy');\ncommentsLabel(1); // komentarz\ncommentsLabel(0); // komentarzy\ncommentsLabel(3); // komentarze\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftypeofweb%2Fpolish-plurals","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftypeofweb%2Fpolish-plurals","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftypeofweb%2Fpolish-plurals/lists"}