Facebook 刚刚重新推出了具有自动语法修复功能的评论。
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’)
什么是等效的插件或 gem?
最佳答案
我不知道任何具有这些特定功能的东西。
但是,您可能会查看 Ruby LinkParser ,这是由学术界开发并由 Abiword project 使用的链接语法解析器的 Ruby 包装器用于语法检查。 (请注意,Link Grammer 解析器中的“链接”不是指 HTML 链接,而是指将英语语法描述为单词之间的一组链接的结构)。
这是另一个 interesting checker ,用 Ruby 编写,旨在检查 LaTex 文件中是否存在您提到的一些问题(以及其他问题)。
关于ruby-on-rails - 什么是自动修复英语语法的 Rails 插件或 Ruby gem?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5237791/