Check English grammar

c#, grammar, nlp

Solution

If you have MS Word installed you can include a reference to the COM library "Microsoft Word 12.0 Object Library" in your project. (I think there may also be a .NET interop library, but I haven't tested it).

Then in your code you can simply invoke:

Microsoft.Office.Interop.Word.Application myWord = new Microsoft.Office.Interop.Word.Application();

...

return myWord.CheckGrammar("Your string here");

And that should do it.

Problem

I am looking for a simple C# library that does the following: Takes a string representing a single sentence, and returns a boolean saying if it's grammatically correct. I have not been able to find a single, self-contained library that does this after extensive searching.

Original source