如何使用C#获取语法建议? [英] How to get grammar suggestions using C#?
本文介绍了如何使用C#获取语法建议?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何检查语法并使用C#获取建议?
例如
How to check grammar and get suggestions using C#?
e.g.
"I eat a apple"
应该返回
should return
"I eat an apple"
以下网站执行此操作:
http://www.polishmywriting.com/ [ ^ ]
似乎这个网站使用linux服务器完成工作
但是此时我对获取.NET服务器端代码更感兴趣。
(想用.NET在自己的服务器上托管语法检查器)
谢谢,
Nitin
Following site does this:
http://www.polishmywriting.com/[^]
seems this site does the job using linux server
but at this moment I am more interested in getting .NET server side code.
(Want to host grammar checker on own server with .NET)
Thanks,
Nitin
推荐答案
我宁愿使用一些现有的应用程序进行拼写检查/语法检查。在CP上,有一篇关于使用Microsoft Word的拼写检查的文章(参见使用Word的拼写检查C# [ ^ ]),语法检查器可以类似地集成。
OpenOffice也应该为语法检查器提供API(参见例如 http://wiki.openoffice.org/wiki/Grammar_Checking_API [ ^ ]),但是.Net应用程序中OpenOffice的集成通常很复杂。
I'd rather use some existing application for spell checking / grammar checking. Here on CP, there is an article on using Microsoft Word's spell checker (see Using Word's spellchecker in C#[^]), the grammar checker could be integrated similarly.
Also OpenOffice should offer an API for the grammar checker (see e.g. http://wiki.openoffice.org/wiki/Grammar_Checking_API[^]), but the integration of OpenOffice from a .Net application is often complicated.
这篇关于如何使用C#获取语法建议?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文