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!
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.
You might want to add your own user defined rules to Languagetool for the differences between Portuguese and Brazilian Portuguese. This input is probably also most welcome by the Languagetool community to add it to the language-modules/pt source code.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.