Search code examples
javaopenoffice.orglanguagetool

Java API that check portuguese grammar from openOffice or Microsoft Office


I'm working on a journalist project in Brazil, so I need to find a Java API that is able to check spelling and grammar documents from Open Office or Microsoft word document. I did some research on google and found some cool API like LanguageTools but what I need is an API that works with Portuguese - Brazil. I was able to develop the check spelling with UNO API and Hunspell, but I was not able to develop the grammar check.

The only grammar check that I was able to find was CoGroo, but it's not an API, just a extension for Open Office documents.

This is a very important project, so if anyone could help me with this situation I'll be very grateful!


Solution

  • The CoGroo extension (*.oxt) is just a ZIP file, you can rename it to *.zip, unzip it and will find several JAR files. Thus chances are good you can use it as an API from Java.