{"id":26999868,"url":"https://github.com/public-law/law_string","last_synced_at":"2025-11-11T19:28:15.896Z","repository":{"id":31473637,"uuid":"128003840","full_name":"public-law/law_string","owner":"public-law","description":"String utils in support of legal publishing","archived":false,"fork":false,"pushed_at":"2023-07-05T15:36:43.000Z","size":31,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-05-01T09:53:04.095Z","etag":null,"topics":["ruby"],"latest_commit_sha":null,"homepage":"","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/public-law.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}},"created_at":"2018-04-04T03:48:58.000Z","updated_at":"2023-07-07T06:58:34.000Z","dependencies_parsed_at":"2022-08-07T16:30:17.074Z","dependency_job_id":null,"html_url":"https://github.com/public-law/law_string","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/public-law%2Flaw_string","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/public-law%2Flaw_string/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/public-law%2Flaw_string/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/public-law%2Flaw_string/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/public-law","download_url":"https://codeload.github.com/public-law/law_string/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246847053,"owners_count":20843438,"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":["ruby"],"created_at":"2025-04-04T03:18:14.148Z","updated_at":"2025-11-11T19:28:15.835Z","avatar_url":"https://github.com/public-law.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"LawString\n=========\n\nA few string util functions which support the [Public.Law](https://www.public.law) apps. Optimized for reduced object instantiation\nat the expense of readability.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'law_string'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install law_string\n\n## Usage\n\nProvides;\n\n* `#add_typograpy` e.g., changing ASCII quotes to true UTF-8 double quotes.\n* `#add_html_typograhy` improvements which require HTML.\n* `#initialism?` to detect, e.g., \"ATM\". Very rudimentary.\n* `#initials?` to detect, e.g., \"A.S.C.A.P.\"\n* `#titleize` enhanced for English-language legal texts, coded to reduce memory allocations.\n\nSee [the tests](https://github.com/public-law/law_string/blob/master/spec/law_string_spec.rb) for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpublic-law%2Flaw_string","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpublic-law%2Flaw_string","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpublic-law%2Flaw_string/lists"}