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

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

问题描述

Facebook 刚刚重新推出了带有自动语法修复功能的评论功能.

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

语法过滤器有什么作用?

What does the grammar filter do?

  • 添加标点符号(例如句末句号)
  • 修剪多余的空格 Auto case 单词(例如,将 a句)
  • 扩展俚语(例如 plz 变成 please)
  • 添加空格在标点符号之后(例如 Hi,Cat 会变成 Hi, Cat)
  • 修复常见问题语法错误(例如,将dont"转换为don't")

什么是等效插件或 gem?

What is an equivalent plugin or gem?

推荐答案

我对这些特殊功能一无所知.

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

但是,您可能会查看 Ruby LinkParser,它是 Link Grammar 的 Ruby 包装器由学术界开发并被 Abiword 项目用于语法检查的解析器.(请注意,Link Grammer 解析器中的链接"不是指 HTML 链接,而是指将英语语法描述为单词之间的一组链接的结构.

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

这是另一个有趣的检查器,写在Ruby,旨在检查 LaTex 文件中您提到的一些问题(以及其他问题).

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天全站免登陆