Sha256: ac1d1f03b1600c71042ecc1f60431d6a0fb9d5f8a8a31118c9b526a204c551e0

Contents?: true

Size: 1.73 KB

Versions: 1

Compression:

Stored size: 1.73 KB

Contents

# RGinger

RGinger 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.

## Installation

    $ gem install rginger

## Command Line Usage

### Usage

    $ rginger [options] "input text"
     

### Options

         --coloring, --no-coloring, -c:   Get colorful output (default: true)
     --correction, --no-correction, -o:   Get suggestions for correcting the original
                                          sentence (default: true)
         --rephrase, --no-rephrase, -r:   Get suggestions for rephrasing the original
                                          sentence (default: true)
                         --version, -v:   Print version and exit
                            --help, -h:   Show this message

### Output Sample




## Library Usage 

    require 'rginger'
    
    ginger = RGinger::Parser.new
    result = ginger.correct "I looking forward meet you"

    # {"original"=>"I looking forward meet you",
    # "data"=>
    #  [{"old"=>"looking",
    #    "from"=>2,
    #    "to"=>8,
    #    "reverse_from"=>-24,
    #    "reverse_to"=>-18,
    #    "new"=>"am looking"},
    #   {"old"=>"meet",
    #    "from"=>18,
    #    "to"=>21,
    #    "reverse_from"=>-8,
    #    "reverse_to"=>-5,
    #    "new"=>"to meet"}],
    # "corrected"=>"I am looking forward to meet you"}

### References

Alif 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.

### Thanks

Ginger Software for the great software and services that support learners aspiring for skills of writing good English.

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rginger-0.1 README.md