{"id":21858102,"url":"https://github.com/cesarferreira/kotlin-pluralizer","last_synced_at":"2025-04-14T18:53:43.586Z","repository":{"id":45928416,"uuid":"67342759","full_name":"cesarferreira/kotlin-pluralizer","owner":"cesarferreira","description":"☀️ Kotlin extension to pluralize and singularize strings","archived":false,"fork":false,"pushed_at":"2023-05-24T10:00:35.000Z","size":130,"stargazers_count":50,"open_issues_count":2,"forks_count":7,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-28T07:21:49.622Z","etag":null,"topics":["library","pluralization","pluralize"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","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/cesarferreira.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}},"created_at":"2016-09-04T12:10:17.000Z","updated_at":"2025-02-16T19:28:09.000Z","dependencies_parsed_at":"2024-04-07T00:33:59.770Z","dependency_job_id":"61dffae0-a4a6-45f5-81bb-4a9f39ca87c6","html_url":"https://github.com/cesarferreira/kotlin-pluralizer","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cesarferreira%2Fkotlin-pluralizer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cesarferreira%2Fkotlin-pluralizer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cesarferreira%2Fkotlin-pluralizer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cesarferreira%2Fkotlin-pluralizer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cesarferreira","download_url":"https://codeload.github.com/cesarferreira/kotlin-pluralizer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248942192,"owners_count":21186938,"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":["library","pluralization","pluralize"],"created_at":"2024-11-28T02:42:23.054Z","updated_at":"2025-04-14T18:53:43.564Z","avatar_url":"https://github.com/cesarferreira.png","language":"Kotlin","funding_links":[],"categories":["人工智能"],"sub_categories":["自然语言处理"],"readme":"\n# kotlin-pluralizer\n\n**kotlin extension** to **pluralize** and **singularize** strings\n\n[![Build Status](https://travis-ci.org/cesarferreira/kotlin-pluralizer.svg?branch=master)](https://travis-ci.org/cesarferreira/kotlin-pluralizer) [![Release](https://jitpack.io/v/cesarferreira/kotlin-pluralizer.svg)](https://jitpack.io/#cesarferreira/kotlin-pluralizer)\n\n### Show some love\n[![GitHub followers](https://img.shields.io/github/followers/cesarferreira.svg?style=social\u0026label=Follow)](https://github.com/cesarferreira/kotlin-pluralizer)   [![Twitter Follow](https://img.shields.io/twitter/follow/cesarmcferreira.svg?style=social)](https://twitter.com/cesarmcferreira)\n\n## Usage\n\n\n**Pluralization:**\n\n```kotlin\n\"person\".pluralize()        # =\u003e \"people\"\n\"post\".pluralize()          # =\u003e \"posts\"\n\"sheep\".pluralize()         # =\u003e \"sheep\"\n\"foot\".pluralize()          # =\u003e \"feet\"\n```\n\n**Singularization:**\n\n```kotlin\n\"words\".singularize()       # =\u003e \"word\"\n\"octopi\".singularize()      # =\u003e \"octopus\"\n\"people\".singularize()      # =\u003e \"person\"\n\"feet\".singularize()        # =\u003e \"foot\"\n```\n\n**Quantities:**\n```kotlin\n\"person\".pluralize(1)       # =\u003e \"person\"\n\"person\".pluralize(2)       # =\u003e \"people\"\n```\n\n## Install\n\n```groovy\nrepositories {\n    jcenter()\n    maven { url \"https://jitpack.io\" }\n }\n dependencies {\n    compile 'com.github.cesarferreira:kotlin-pluralizer:1.0.0'\n }\n ```\n\n## Contributing\n\nI welcome and encourage all pull requests. It usually will take me within 24-48 hours to respond to any issue or request. Here are some basic rules to follow to ensure timely addition of your request:\n  1. Match coding style (braces, spacing, etc.) This is best achieved using `CMD`+`Option`+`L` (Reformat code) on Mac (not sure for Windows) with Android Studio defaults.\n  2. If its a feature, bugfix, or anything please only change code to what you specify.\n  3. Please keep PR titles easy to read and descriptive of changes, this will make them easier to merge :)\n  4. Pull requests _must_ be made against `develop` branch. Any other branch (unless specified by the maintainers) will get rejected.\n  5. Check for existing [issues](https://github.com/cesarferreira/kotlin-pluralizer/issues) first, before filing an issue.  \n  6. Have fun!\n\n\n## Credits\n\n  The pluralize and singularize methods are based on the code found in the following places.\n\n  - https://github.com/rails/rails/blob/26698fb91d88dca0f860adcb80528d8d3f0f6285/activesupport/lib/active_support/inflector/inflections.rb\n\n  - https://github.com/atteo/evo-inflector/blob/master/src/main/java/org/atteo/evo/inflector/English.java\n  - http://www.java2s.com/Tutorial/Java/0040__Data-Type/Transformswordstosingularpluralhumanizedhumanreadableunderscorecamelcaseorordinalform.htm\n  - https://github.com/MehdiK/Humanizer.jvm\n\n\n### Created \u0026 Maintained By\n[Cesar Ferreira](https://github.com/cesarferreira) ([@cesarmcferreira](https://www.twitter.com/cesarmcferreira))\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcesarferreira%2Fkotlin-pluralizer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcesarferreira%2Fkotlin-pluralizer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcesarferreira%2Fkotlin-pluralizer/lists"}