如何在C#表单应用程序中检查英语语法 [英] How to check English grammar in C# form application

查看:84
本文介绍了如何在C#表单应用程序中检查英语语法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在C#表单应用程序中检查英语语法.

How to check English grammar in C# form application.

推荐答案

您好,

这是描述解决方案的链接.尽管代码在VB.NET中,但是您可能会获得足够的信息来重写C#中的代码:
http://devcity.net/Articles/89/1/spellcheck.aspx [ ^ ]
Hi,

here is a link that describes a solution. Although the code is in VB.NET, you might get enough information to rewrite the code in C#:
http://devcity.net/Articles/89/1/spellcheck.aspx[^]


看这里适用于开源:

http://www.thefreecountry.com/sourcecode/spellcheckers.shtml [ http://www.thefreecountry.com/utilities/free-spell-checkers.shtml [ ^ ]

谷歌也这样:

Look here for Open Source:

http://www.thefreecountry.com/sourcecode/spellcheckers.shtml[^].

Also here:
http://www.thefreecountry.com/utilities/free-spell-checkers.shtml[^]

Also Google something like that:

open source spell checker windows



这几天,开放源代码收集了更多的资源,您有一些不错的开发选择.



This days, Open Source collected more resources, you have some good options for development.


您选择了一个艰难的课题!拼写检查是一项琐碎的练习,一遍又一遍,但我从未听说过有效,准确的英语语法检查工具.大多数以母语为母语的人做得不好,他们的写作也差得多-这是一种非常复杂的语言.英语语法规则很复杂,而且很多,这些年的普遍用法也有很多例外.

我将使用基于规则的推理引擎对此进行攻击,并在真正的正式语言专家的帮助下填充规则库.实际上,我将使用基于类似功能的字典检查器对输入进行预处理,以剔除大多数人认为正确的许多误用词.这将必须分析单词组,以试图发掘作者的意图并解决使用错误–它们在那里,它们是;它是也要两个-依此类推.

您的引擎还必须添加学习功能,以便在遇到新情况时在其规则库中添加新的内容.这是一个令人讨厌的问题,但需要有人解决.有人可能就是你! :-D
You''ve picked a tough subject! Spell checking is a trivial exercise that has been done over and over again, but I''ve never heard of an effective, accurate grammar checking tool for the English language. Most native speakers do it badly, and their writing is far worse - it''s a very complex language. The rules of English grammar are complex and many, and there are a lot of exceptions that have fallen into general usage of the years.

I would attack this with a rule-based inference engine, and populate the rule base with the help of someone truly expert in the formal language. In fact, I would preprocess the input with a diction checker built on similar functionality, to cull out the many misused words that most people think are correct. This would have to analyze word groups to attempt to ferret out the intent of the writer and resolve errors of usage - their, there, they''re; its, it''s; too, to, two - and so on.

Your engine would have to add a learning function, as well, to accomodate new additions to its rule base as new situations are encountered. It''s a nasty problem, but one that needs to be solved by someone. That someone might well be you! :-D


这篇关于如何在C#表单应用程序中检查英语语法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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