简体   繁体   English

Java的开源拼写检查库

[英]Open source spell checking library for Java

I am looking for free and open source spell checking libraries (could check whether spelling is correct for a given string, and any suggested corrections for a mis-spelled string), which could be easily integrated into Java program on Linux. 我正在寻找免费和开源的拼写检查库(可以检查给定字符串的拼写是否正确,以及对拼写错误的字符串的任何建议更正),这些库可以轻松集成到Linux上的Java程序中。 English language spell checking is a must requirement,spell checking for other languages is a better to have requirement. 英语拼写检查是必须的要求,其他语言的拼写检查是更好的要求。

Any suggestions? 有什么建议么?

BTW: libraries for C/C++ is also ok. 顺便说一句:C / C ++库也可以。

GNU Aspell is a LGPL spelling library that you can use but it's implemented in C++. GNU Aspell是可以使用的LGPL拼写库,但是它是用C ++实现的。 Although I haven't used it there's a Java library called Jazzy that aims to be a Java re-implementation of Aspell. 尽管我没有使用过,但有一个名为Jazzy的Java库,其目的是对Aspell进行Java重新实现。 It's a fairly old project but it looks like it still works. 这是一个相当老的项目,但看起来仍然可以使用。

Edit: 编辑:

Just discovered that Hunspell is a better project for spell checking. 刚发现Hunspell是进行拼写检查的更好项目。 It powers Open Office.org, Firefox and Google Chrome. 它为Open Office.org,Firefox和Google Chrome提供动力。 There's also a project with that supplies JNA wrappers so you can use it in Java. 还有一个提供JNA包装器的项目,因此您可以在Java中使用它。

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

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