{"id":13747322,"url":"https://github.com/subosito/gingerice","last_synced_at":"2025-05-09T08:32:18.477Z","repository":{"id":8261367,"uuid":"9711930","full_name":"subosito/gingerice","owner":"subosito","description":"Ruby wrapper for correcting spelling and grammar mistakes based on the context of complete sentences.","archived":true,"fork":false,"pushed_at":"2019-08-29T07:45:41.000Z","size":41,"stargazers_count":480,"open_issues_count":0,"forks_count":22,"subscribers_count":20,"default_branch":"master","last_synced_at":"2024-04-13T22:42:50.300Z","etag":null,"topics":["ruby","rubygem"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/subosito.png","metadata":{"files":{"readme":"README.md","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":"2013-04-27T08:44:59.000Z","updated_at":"2024-03-26T02:47:55.000Z","dependencies_parsed_at":"2022-08-24T13:39:41.762Z","dependency_job_id":null,"html_url":"https://github.com/subosito/gingerice","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subosito%2Fgingerice","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subosito%2Fgingerice/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subosito%2Fgingerice/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subosito%2Fgingerice/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/subosito","download_url":"https://codeload.github.com/subosito/gingerice/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224415561,"owners_count":17307272,"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","rubygem"],"created_at":"2024-08-03T06:01:25.070Z","updated_at":"2024-11-15T20:31:32.157Z","avatar_url":"https://github.com/subosito.png","language":"Ruby","funding_links":[],"categories":["Ruby","High Level Tasks"],"sub_categories":["Spelling and Error Correction"],"readme":"# Gingerice\n\n[![Gem Version](https://badge.fury.io/rb/gingerice.svg)](https://badge.fury.io/rb/gingerice)\n[![Build Status](https://travis-ci.org/subosito/gingerice.svg?branch=master)](https://travis-ci.org/subosito/gingerice)\n[![Coverage Status](https://coveralls.io/repos/github/subosito/gingerice/badge.svg?branch=master)](https://coveralls.io/github/subosito/gingerice?branch=master)\n[![Maintainability](https://api.codeclimate.com/v1/badges/86b7817ae1779428f3a3/maintainability)](https://codeclimate.com/github/subosito/gingerice/maintainability)\n\nRuby wrapper of Ginger Proofreader which corrects spelling and grammar mistakes based on the context of complete sentences by comparing each sentence to billions of similar sentences from the web.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'gingerice'\n```\n\nAnd then execute:\n\n```bash\n$ bundle\n```\n\nOr install it yourself as:\n\n```bash\n$ gem install gingerice\n```\n\n## Usage\n\n```ruby\nrequire 'gingerice'\n\ntext = 'The smelt of fliwers bring back memories.'\n\nparser = Gingerice::Parser.new\nparser.parse text\n```\n\n```\n# output:\n\n{\n           \"text\" =\u003e \"The smelt of fliwers bring back memories.\",\n         \"result\" =\u003e \"The smell of flowers brings back memories.\",\n    \"corrections\" =\u003e [\n        [0] {\n                  \"text\" =\u003e \"smelt\",\n               \"correct\" =\u003e \"smell\",\n            \"definition\" =\u003e nil,\n                 \"start\" =\u003e 4,\n                \"length\" =\u003e 5\n        },\n        [1] {\n                  \"text\" =\u003e \"fliwers\",\n               \"correct\" =\u003e \"flowers\",\n            \"definition\" =\u003e \"a plant cultivated for its blooms or blossoms\",\n                 \"start\" =\u003e 13,\n                \"length\" =\u003e 7\n        },\n        [2] {\n                  \"text\" =\u003e \"bring\",\n               \"correct\" =\u003e \"brings\",\n            \"definition\" =\u003e nil,\n                 \"start\" =\u003e 21,\n                \"length\" =\u003e 5\n        }\n    ]\n}\n```\n\nThis gem also provides executable which can be executed:\n\n```bash\n$ gingerice \"Edwards will be sck yesterday\"\n```\n\n```\n# output:\n\nEdwards was sick yesterday\n```\n\nOr if you want verbose output you can add `--verbose` or `-v` argument:\n\n```bash\n$ gingerice --verbose \"Edwards will be sck yesterday\"\n```\n\n```\n# output:\n\n{\n           \"text\" =\u003e \"Edwards will be sck yesterday\",\n         \"result\" =\u003e \"Edwards was sick yesterday\",\n    \"corrections\" =\u003e [\n        [0] {\n                  \"text\" =\u003e \"will be\",\n               \"correct\" =\u003e \"was\",\n            \"definition\" =\u003e nil,\n                 \"start\" =\u003e 8,\n                \"length\" =\u003e 7\n        },\n        [1] {\n                  \"text\" =\u003e \"sck\",\n               \"correct\" =\u003e \"sick\",\n            \"definition\" =\u003e \"affected by an impairment of normal physical or mental function\",\n                 \"start\" =\u003e 16,\n                \"length\" =\u003e 3\n        }\n    ]\n}\n```\n\n## Contributing\n\n1. Fork it\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create new Pull Request\n\n## Ports\n\n- PHP library by @Aitboudad: https://github.com/Aitboudad/GingerLight.git\n- Python library by @Azd325: https://github.com/Azd325/gingerit\n\n## Thanks\n\nThank you for [Ginger Proofreader](http://www.gingersoftware.com/) for such awesome service. Hope they will keep it free :)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsubosito%2Fgingerice","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsubosito%2Fgingerice","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsubosito%2Fgingerice/lists"}