什么是 Rails 插件或 Ruby gem,可以自动修复英语语法?
Facebook 刚刚重新推出了 Comments,具有自动语法修复功能。
语法过滤器有什么作用?
- 添加标点符号(例如句子末尾的句号)
- 修剪多余的空格 自动区分单词(例如,将 a 的第一个单词大写) 句)
- 扩展俚语(例如 plz 变为please)
- 添加一个空格 标点符号后(例如 Hi,Cat 将变为 Hi, Cat)
- 修复常见问题 语法错误(例如将“dont”转换为“don't”)
什么是等效的插件或gem?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我不知道有什么具有这些特殊功能的东西。
但是,您可以查看 Ruby LinkParser,它是由以下公司开发的链接语法解析器的 Ruby 包装器:学术界,并由 Abiword 项目 用于语法检查。 (请注意,Link Grammer 解析器中的“link”不是指 HTML 链接,而是指将英语语法描述为单词之间的一组链接的结构)。
这是另一个用 Ruby 编写的有趣的检查器,旨在检查 LaTex 文件中是否存在您提到的一些问题(以及其他问题)。
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).
“After the Deadline”是一项完整(免费)的语法检查服务。有人已经为它编写了 Ruby 包装器。
https://github.com/msepcot/after_the_deadline
"After the Deadline" is a complete (free) grammar checking service. Someone has already written a Ruby wrapper for it.
https://github.com/msepcot/after_the_deadline
您可能对 Gingerice 感兴趣,它似乎可以满足您的需求!
You may be interested in Gingerice which seems to do what you are looking for!