I have two options to use hunspell from java:

  • Hunspell JNA or
  • Hunspell BridJ

Both of them works fine, but I would like to use the "personal dictionary" feature of hunspell (when calling hunspell from command line, the -p parameter).

Is there a way to use Hunspell JNA or BridJ with this parameter, or with the same funcionality?

有帮助吗?

解决方案

Well, by looing at the C++ source of Hunspell, I finally figured it out; the Hunspell library doesn't use personal dictionaries - only the Hunspell CLI (Command Line Interface) uses it, so there is no way (unless you write your own custom code) to use it from JNA or BridJ.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top