{"id":20842812,"url":"https://github.com/mudge/title_case","last_synced_at":"2025-05-08T22:41:38.158Z","repository":{"id":400433,"uuid":"18706","full_name":"mudge/title_case","owner":"mudge","description":"A Ruby implementation of John Gruber's Title Case.","archived":false,"fork":false,"pushed_at":"2020-02-29T08:33:47.000Z","size":19,"stargazers_count":5,"open_issues_count":1,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-05-08T18:53:42.372Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mudge.png","metadata":{"files":{"readme":"README.markdown","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}},"created_at":"2008-05-21T21:51:02.000Z","updated_at":"2019-08-13T13:25:00.000Z","dependencies_parsed_at":"2022-07-04T14:55:05.936Z","dependency_job_id":null,"html_url":"https://github.com/mudge/title_case","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mudge%2Ftitle_case","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mudge%2Ftitle_case/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mudge%2Ftitle_case/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mudge%2Ftitle_case/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mudge","download_url":"https://codeload.github.com/mudge/title_case/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253160727,"owners_count":21863624,"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-11-18T01:25:35.933Z","updated_at":"2025-05-08T22:41:38.141Z","avatar_url":"https://github.com/mudge.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ruby Title Case [![Build Status](https://secure.travis-ci.org/mudge/title_case.png)](http://travis-ci.org/mudge/title_case)\n\nThis is a Ruby implementation of [John Gruber's Title Case][gruber] by Paul\nMucur.\n\n  [gruber]: http://daringfireball.net/2008/05/title_case\n\n## Usage\n\nSimply pass any string to which you wish to apply title casing to the `Title`\ninitializer and then use the `to_title_case` method. A `Title` instance has\nall the methods of the original string and so should be suitable for using\ninterchangably with it.\n\nFor example:\n\n```ruby\nrequire 'title'\n\ngreeting = Title.new(\"Hello there\")\ngreeting.to_title_case\n# =\u003e \"Hello There\"\n```\n\n## Didn't this library previously re-open the `String` class and use DCI?\n\nYes, but I have since learnt the [error of my\nways](http://evan.tiggerpalace.com/articles/2011/11/24/dci-that-respects-the-method-cache/).\n\n## Known Issues\n\nUnlike the original Perl implementation, this version does not correctly\ncapitalise characters such as é and is therefore limited in scope to strings\nconsisting only of [ASCII](http://en.wikipedia.org/wiki/Ascii) printable\ncharacters. A workaround would be to stop relying on the Ruby regular\nexpression patterns of `[A-Z]`, `\\w` and `\\W` for detecting capital letters,\nalphanumeric characters and non-alphanumeric characters respectively.\n\nWhile it will deal with most common usage where you need a\nreasonably-correctly-cased sentence to be made suitable for a title, it will\nnot correct mistakes such as lowercase acronyms or errant capital letters:\n\n    \"at\u0026t\"  =\u003e \"At\u0026t\"\n    \"HellO\" =\u003e \"HellO\"\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmudge%2Ftitle_case","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmudge%2Ftitle_case","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmudge%2Ftitle_case/lists"}