简体   繁体   English

用于检查openOffice或Microsoft Office的葡萄牙语语法的Java API

[英]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. 我正在巴西做一个记者项目,所以我需要找到一个能够从Open Office或Microsoft word文档中检查拼写和语法文档的Java API。 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. 我在google上做了一些研究,发现了一些很酷的API,比如LanguageTools但我需要的是一个适用于葡萄牙语 - 巴西的API。 I was able to develop the check spelling with UNO API and Hunspell, but I was not able to develop the grammar check. 我能够使用UNO API和Hunspell开发检查拼写,但我无法开发语法检查。

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. 我能找到的唯一语法检查是CoGroo ,但它不是API,只是Open Office文档的扩展。

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. CoGroo扩展(* .oxt)只是一个ZIP文件,您可以将其重命名为* .zip,解压缩并找到几个JAR文件。 Thus chances are good you can use it as an API from Java. 因此很有可能你可以将它用作Java的API。

You might want to add your own user defined rules to Languagetool for the differences between Portuguese and Brazilian Portuguese. 您可能希望将自己的用户定义规则添加到Languagetool,以了解葡萄牙语和巴西葡萄牙语之间的差异。 This input is probably also most welcome by the Languagetool community to add it to the language-modules/pt source code. Languagetool社区也非常欢迎此输入,以将其添加到language-modules / pt源代码中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM