Check English Grammar

I am looking for a simple C # library that does the following: takes a string representing a single sentence and returns a boolean expression if it is grammatically corrected.

I could not find a separate standalone library that does this after an extensive search.

+4
source share
1 answer

If you have MS Word installed, you can include the link in the COM library "Microsoft Word Object Library 12.0" in your project. (I think there might also be a .NET interop library, but I have not tested it).

Then in your code you can simply call:

Microsoft.Office.Interop.Word.Application myWord = new Microsoft.Office.Interop.Word.Application(); ... return myWord.CheckGrammar("Your string here"); 

And that should do it.

+9
source

All Articles