{"id":18100166,"url":"https://github.com/infertux/ordinalize_full","last_synced_at":"2025-07-27T21:38:31.341Z","repository":{"id":676804,"uuid":"21364467","full_name":"infertux/ordinalize_full","owner":"infertux","description":"Turns a number into an ordinal string such as first, second, third or 1st, 2nd, 3rd.","archived":false,"fork":false,"pushed_at":"2023-09-27T02:24:25.000Z","size":47,"stargazers_count":9,"open_issues_count":0,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-06-23T14:47:33.659Z","etag":null,"topics":["i18n","language","ordinalize","rails","ruby","rubygem"],"latest_commit_sha":null,"homepage":null,"language":"Ruby","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/infertux.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":"2014-06-30T20:11:49.000Z","updated_at":"2024-06-20T13:07:44.000Z","dependencies_parsed_at":"2024-08-22T21:34:22.043Z","dependency_job_id":"d8e4cadd-0f07-4ee5-93ed-01d60d28f1b3","html_url":"https://github.com/infertux/ordinalize_full","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/infertux/ordinalize_full","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/infertux%2Fordinalize_full","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/infertux%2Fordinalize_full/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/infertux%2Fordinalize_full/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/infertux%2Fordinalize_full/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/infertux","download_url":"https://codeload.github.com/infertux/ordinalize_full/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/infertux%2Fordinalize_full/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267429114,"owners_count":24085886,"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","status":"online","status_checked_at":"2025-07-27T02:00:11.917Z","response_time":82,"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":["i18n","language","ordinalize","rails","ruby","rubygem"],"created_at":"2024-10-31T21:13:12.292Z","updated_at":"2025-07-27T21:38:31.303Z","avatar_url":"https://github.com/infertux.png","language":"Ruby","funding_links":[],"categories":["Ruby"],"sub_categories":[],"readme":"# OrdinalizeFull\n\n[![Build Status](https://github.com/infertux/ordinalize_full/actions/workflows/tests.yml/badge.svg)](https://github.com/infertux/ordinalize_full/actions)\n[![Gem Version](https://badge.fury.io/rb/ordinalize_full.svg)](https://badge.fury.io/rb/ordinalize_full)\n\nLike Rails' [ordinalize](http://api.rubyonrails.org/classes/ActiveSupport/Inflector.html#method-i-ordinalize) method but with the ability to return the ordinal string spelled out in full words such as _\"first\"_, _\"second\"_, _\"third\"_.\n\nFeatures:\n\n- i18n support\n- doesn't require monkey-patching\n- easy to integrate with Rails but doesn't require Rails\n\n## Usage\n\n### Monkey-patching `Integer` (like Rails does)\n\n```ruby\nrequire \"ordinalize_full/integer\"\n\n42.ordinalize_in_full #=\u003e \"forty second\"\n42.ordinalize_full #=\u003e \"forty second\"\n42.ordinalize(in_full: true) #=\u003e \"forty second\"\n42.ordinalize #=\u003e \"42nd\"\n\nI18n.locale = :fr\n42.ordinalize_in_full #=\u003e \"quarante-deuxième\"\n42.ordinalize #=\u003e \"42ème\"\n\nI18n.locale = :es\n14.ordinalize_in_full(gender: :feminine, plurality: :plural) #=\u003e decimocuartas\n1.ordinalize_in_full #=\u003e primer // default masculine, singular\n22.ordinalize_in_full(gender: :feminine) #=\u003e vigésima segunda // default singular\n1.ordinalize #=\u003e 1.ᵉʳ\n55.ordinalize #=\u003e 55.ᵒ\n```\n\n### Without monkey-patching\n\n```ruby\nrequire \"ordinalize_full\"\n\n42.ordinalize_in_full #=\u003e NoMethodError: undefined method `ordinalize_in_full' for 42:Fixnum\n\nclass MyIntegerLikeClass; include OrdinalizeFull; def to_s; \"42\"; end; end #=\u003e :to_s\nMyIntegerLikeClass.new.ordinalize_in_full #=\u003e \"forty second\"\n```\n\n## Limitations\n\n- only works up to 100 for non-English languages\n- locales only available in English, French, Italian, Spanish, and Dutch (pull requests welcome!)\n\n## License\n\n`SPDX-License-Identifier: MIT`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finfertux%2Fordinalize_full","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finfertux%2Fordinalize_full","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finfertux%2Fordinalize_full/lists"}