{"id":18862115,"url":"https://github.com/yohasebe/rginger","last_synced_at":"2025-04-14T13:02:29.172Z","repository":{"id":12171773,"uuid":"14770279","full_name":"yohasebe/rginger","owner":"yohasebe","description":"RGinger takes an English sentence and gives correction and rephrasing suggestions for it using Ginger proofreading API.","archived":false,"fork":false,"pushed_at":"2020-05-20T02:46:53.000Z","size":170,"stargazers_count":17,"open_issues_count":2,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-05T00:46:51.029Z","etag":null,"topics":["english","grammar","proofread","ruby"],"latest_commit_sha":null,"homepage":null,"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/yohasebe.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-11-28T07:12:29.000Z","updated_at":"2023-04-26T11:01:27.000Z","dependencies_parsed_at":"2022-09-01T17:03:46.389Z","dependency_job_id":null,"html_url":"https://github.com/yohasebe/rginger","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yohasebe%2Frginger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yohasebe%2Frginger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yohasebe%2Frginger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yohasebe%2Frginger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yohasebe","download_url":"https://codeload.github.com/yohasebe/rginger/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248214521,"owners_count":21066457,"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":["english","grammar","proofread","ruby"],"created_at":"2024-11-08T04:33:20.810Z","updated_at":"2025-04-14T13:02:29.130Z","avatar_url":"https://github.com/yohasebe.png","language":"Ruby","readme":"# RGinger\n\nRGinger takes an English sentence and gives correction and rephrasing suggestions for it using Ginger proofreading API. It can be used both as a Ruby library and a command line application.\n\n**IMPORTANT**\u003cbr /\u003e\nVersion 0.1.5 dropped `rephrase` command-line option and `Rginger#rephrase` function because the API endpoint for these is no longer functioning. The relevant documentation in this readme will be kept as it was for the time being though.\n\n## Installation\n\n    $ gem install rginger\n\n## Command Line Usage\n\n### Usage\n\n    $ rginger [options] \"input text\"\n     \n\n### Options\n\n         --coloring, --no-coloring, -c:   Get colorful output (default: true)\n     --correction, --no-correction, -o:   Get suggestions for correcting the original\n                                          sentence (default: true)\n         --rephrase, --no-rephrase, -r:   Get suggestions for rephrasing the original\n                                          sentence (default: true)\n                         --version, -v:   Print version and exit\n                            --help, -h:   Show this message\n\n### Output Sample\n\n\u003ca href=\"http://www.flickr.com/photos/yo_hasebe/11097279325/\" title=\"rginger by yo_hasebe, on Flickr\"\u003e\u003cimg src=\"http://farm4.staticflickr.com/3673/11097279325_a382163d57_o.jpg\" width=\"383\" height=\"255\" alt=\"rginger\"\u003e\u003c/a\u003e\n\n## Library Usage \n\n    require 'rginger'\n\n    text = \"I looking forward meet you\"\n    ginger = RGinger::Parser.new\n    result = ginger.correct text\n\n    # {\"original\"=\u003e\"I looking forward meet you\",\n    # \"data\"=\u003e\n    #  [{\"old\"=\u003e\"looking\",\n    #    \"from\"=\u003e2,\n    #    \"to\"=\u003e8,\n    #    \"reverse_from\"=\u003e-24,\n    #    \"reverse_to\"=\u003e-18,\n    #    \"new\"=\u003e\"am looking\"},\n    #   {\"old\"=\u003e\"meet\",\n    #    \"from\"=\u003e18,\n    #    \"to\"=\u003e21,\n    #    \"reverse_from\"=\u003e-8,\n    #    \"reverse_to\"=\u003e-5,\n    #    \"new\"=\u003e\"to meet\"}],\n    # \"corrected\"=\u003e\"I am looking forward to meet you\"}\n    \n    result = ginger.rephrase text\n    \n    # {\"original\"=\u003e\"I looking forward meet you\", \n    # \"alternatives\"=\u003e\n    #  [\"I was looking forward to meet you\", \n    #   \"I look forward to meeting you\", \n    #   \"I'm looking forward to meeting you\", \n    #   \"I'm looking forward to meet you\", \n    #   \"I look forwarding to meeting you\", \n    #   \"I'm looking forwarding to meeting you\", \n    #   \"I look forward to meeting you all\"]} \n\n### References\n\nAlif Rachmawadi's [Gingerice](https://github.com/subosito/gingerice) may be a better solution than RGinger for those who do not need colored command line output and \"rephrase\" functionality.\n\n### Thanks\n\nGinger Software for the great software and services that support learners aspiring for skills of writing good English.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyohasebe%2Frginger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyohasebe%2Frginger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyohasebe%2Frginger/lists"}