Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

English grammar checker library for C++

Tags:

c++

grammar

Is there an open-source English grammar-checking library for C++ like language tools for Java?

like image 213
Dilunika Avatar asked Feb 06 '11 06:02

Dilunika


3 Answers

If you are looking for an open source grammar checker, there's none for C++ code so far. However, i found this python based grammar checker in Git. Its worth checking. https://github.com/topics/grammar-checker

like image 158
winux Avatar answered Sep 27 '22 19:09

winux


I am tempted to say: "No, there isn't, at least not one you would want to use."

However "After the Deadline" appears to be GPL and without trying it myself I couldn't say that with confidence :-)

--

Grammar checking is hard. All the good ones are closed source (possibly modulo the one above). That's because it isn't primarily a computing/automation problem, it's a linguistics problem, of compiling massive numbers of rules and special cases.

In other words, it is more like writing a dictionary than a program. A really, really big dictionary.

Other things which there aren't:

  • Open source machine translation tools you want to use.
  • Open source OCR you want to use.
  • Open source speech recognition that works (heck, even the state of the art is not that good)
  • Open source fiction you want to read
  • Open source music you want to listen to.

All pretty much for the same reason.

like image 21
Ben Avatar answered Sep 27 '22 20:09

Ben


I haven't used it too much, but you may want to look into After the Deadline. It's open source so theoretically you could link into the api, but it's intended for net-aware applications. By default, spelling and grammar checks go to their servers. Alternatively, you could avoid that by building up their open source stand alone server as part of your application.

like image 24
perden Avatar answered Sep 27 '22 18:09

perden