Which Rails or Ruby gem plugin will automatically fix English grammar?

Facebook just restarted the comments with automatic grammar correction.

What does a grammar filter do?

  • Adds punctuation (e.g. periods at the end of sentences)
  • Trim extra spaces. Automatically words (e.g. capital letters of the first sentence)
  • Expands slang words (e.g. plz becomes).
  • Adds a space after punctuation (e.g. Hi, Cat will become Hi, Cat).
  • Fix common grammatical errors (for example, convert 'dont' to 'dont)

What is an equivalent plugin or gem?

+6
ruby regex ruby-on-rails rubygems ruby-on-rails-plugins
source share
3 answers

I don't know anything with these features.

However, you can look at Ruby LinkParser , which is the Ruby shell for the Link Grammar parser, developed by scientists and used the Abigee project to check grammar. (Note that the β€œlink” in Link Grammer syntax does not refer to HTML links, but rather to a structure that describes English syntax as a set of links between words).

Here's another interesting checker written in Ruby that is designed to check LaTex files for some of the problems you mentioned (plus others).

+5
source share

After Expiration is a complete (free) grammar checking service. Someone already wrote a Ruby shell for her.

https://github.com/msepcot/after_the_deadline

+1
source share

You might be interested in Gingerice , who seems to be doing what you are looking for!

+1
source share

All Articles