什么是Rails插件或Ruby gem来自动修复英语语法? [英] What's a Rails plugin, or Ruby gem, to automatically fix English grammar?

查看:119
本文介绍了什么是Rails插件或Ruby gem来自动修复英语语法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


语法筛选器的功能是什么?




  • 添加标点符号(例如在句子结尾的句点)
  • 修剪多余的空格自动处理单词(例如,
    语句的第一个字)

  • 扩展俚语词汇(例如,plz变得更好)

  • 在标点符号后添加空格
    (例如:Hi,Cat会变成Hi,Cat)

  • 修复常见的
    语法错误(例如,将'dont'转换为'不')

什么是等效插件或gem?

解决方案



然而,你可能会看到 Ruby LinkParser ,它是由aca开发的链接语法分析器的Ruby包装器并且由 Abiword项目用于语法检查。 (请注意,Link Grammer解析器中的链接并不是指HTML链接,而是指将英语句法描述为单词之间的一组链接的结构。)



这是另一个用Ruby编写的有趣的检查器,它旨在检查LaTex文件是否存在您提及的某些问题(加上其他问题)。


Facebook just re-launched Comments, with a automatic grammar fixing feature.

What does the grammar filter do?

  • Adds punctuation (e.g. periods at the end of sentences)
  • Trims extra whitespace Auto cases words (e.g. capitalize the first word of a sentence)
  • Expands slang words (e.g. plz becomes please)
  • Adds a space after punctuation (e.g. Hi,Cat would become Hi, Cat)
  • Fix common grammar mistakes (e.g. convert ‘dont' to ‘don’t’)

What is an equivalent plugin or gem?

解决方案

I don't know of anything with those particular features.

However, you might look at Ruby LinkParser, which is a Ruby wrapper for the Link Grammar parser developed by academics and used by the Abiword project for grammar checking. (Note that "link" in Link Grammer parser doesn't 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, which is designed to check LaTex files for some of the problems you mention (plus others).

这篇关于什么是Rails插件或Ruby gem来自动修复英语语法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆