{"id":13612200,"url":"https://github.com/bdesham/pluralize","last_synced_at":"2025-04-13T11:31:45.175Z","repository":{"id":10165666,"uuid":"12247776","full_name":"bdesham/pluralize","owner":"bdesham","description":"A Liquid filter to make it easy to form correct plurals.","archived":false,"fork":false,"pushed_at":"2020-12-02T20:44:57.000Z","size":12,"stargazers_count":29,"open_issues_count":0,"forks_count":4,"subscribers_count":4,"default_branch":"main","last_synced_at":"2024-03-24T11:02:44.228Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bdesham.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-08-20T16:16:21.000Z","updated_at":"2023-04-14T15:59:43.000Z","dependencies_parsed_at":"2022-08-30T19:20:37.027Z","dependency_job_id":null,"html_url":"https://github.com/bdesham/pluralize","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bdesham%2Fpluralize","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bdesham%2Fpluralize/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bdesham%2Fpluralize/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bdesham%2Fpluralize/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bdesham","download_url":"https://codeload.github.com/bdesham/pluralize/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248705691,"owners_count":21148576,"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":[],"created_at":"2024-08-01T20:00:24.749Z","updated_at":"2025-04-13T11:31:44.787Z","avatar_url":"https://github.com/bdesham.png","language":"Ruby","funding_links":[],"categories":["Text Filters"],"sub_categories":[],"readme":"# pluralize\n\nA [Liquid](http://www.liquidmarkup.org/) filter to make it easy to form correct plurals.\n\nAt some point, every programmer has had to display a count of objects, like “36 pages” or “1 message”. This Liquid filter makes it easier to form these plurals correctly—no more taking the lazy way out and writing `{{ number }} message(s)`! (Or worse, assuming that the number will be greater than one.)\n\n## Installation\n\nThe easiest way to install this plugin is with RubyGems: `gem install liquid_pluralize`.\n\nIf you’re using Jekyll, see the Jekyll [documentation on installing plugins](http://jekyllrb.com/docs/plugins/#installing-a-plugin) for more-detailed installation instructions.\n\n## Usage\n\nThe sole provided function is `pluralize`. It can be used in one of two ways:\n\n* for regular plurals (where the plural is formed by appending an _s_):\n\n        {{ remaining_time | pluralize: \"minute\" }}\n\n  will output “0 minutes”, “1 minute”, “17 minutes”, etc.\n\n* for irregular plurals:\n\n        {{ cul_de_sac_list.length | pluralize: \"cul-de-sac\", \"culs-de-sac\" }}\n\n  will output “0 culs-de-sac”, “1 cul-de-sac”, “17 culs-de-sac”, etc.\n\n## Author\n\nThis script was written by [Benjamin Esham](https://esham.io).\n\nThis project is [hosted on GitHub](https://github.com/bdesham/pluralize). Please feel free to submit pull requests.\n\n## Version history\n\nThe version numbers of this project conform to [Semantic Versioning 2.0](http://semver.org/).\n\n* 1.0.3 (2017-07-19): This Gem works with Liquid 4.x too.\n* 1.0.2 (2015-03-06): This Gem works with Liquid 3.x too and the dependencies should reflect that. Thanks to [Aidan Feldman](https://github.com/afeld) for verifying 3.x support and submitting the pull request.\n* 1.0.1 (2015-03-04): Correctly handle the number 1 when it is given in string form. Don’t refer to Jekyll in the code itself.\n* 1.0.0 (2013-08-20): Initial release.\n\n## License\n\nThis project is released into the public domain via the Unlicense, which you can find in the file LICENSE.md.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbdesham%2Fpluralize","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbdesham%2Fpluralize","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbdesham%2Fpluralize/lists"}