基于完整句子语境的 Ruby 包装器,用于纠正拼写和语法错误。
Ruby 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.
Add this line to your application's Gemfile:
gem 'gingerice'And then execute:
$ bundleOr install it yourself as:
$ gem install gingericerequire 'gingerice'
text = 'The smelt of fliwers bring back memories.'
parser = Gingerice::Parser.new
parser.parse text…This gem also provides executable which can be executed:
$ gingerice "Edwards will be sck yesterday"# output:
Edwards was sick yesterdayOr if you want verbose output you can add --verbose or -v argument:
$ gingerice --verbose "Edwards will be sck yesterday"…git checkout -b my-new-feature)git commit -am 'Add some feature')git push origin my-new-feature)Thank you for Ginger Proofreader for such awesome service. Hope they will keep it free :)
暂无开放 Issues,或尚未同步最近议题。