问题标签 [hunspell]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
0 回答
311 浏览

c++ - 所有 C/C++ Hunspell API 都是线程不安全的吗?

例如spell(),是否所有 C/C++ API suggest()analyse()在 Hunspell 库中线程不安全?

当我使用suggest()带锁的 API 时,我看到平均每秒处理 50-100 个建议请求?有没有人尝试对此进行基准测试?

欢迎任何改进建议(包括拼写检查和更正的任何商业选项,我们的网络应用程序基于 C++。)

0 投票
2 回答
1321 浏览

c++ - Simple C++ Console app using Hunspell

I've searched and found a bunch of articles on using Hunspell, but so far none of them have really helped me. C++ - Using HunSpell 1.3.2 with Visual Studio 2010 seems to be exactly what I'm trying to do, but after following along with the question, answer, and linked material, I'm still having problems.

Basically, I'm pretty new to C++ and am trying to learn how to incorporate Hunspell into an application I'm working on. Since this is new to me, I'm trying to start by creating a simple console app, and then going from there.

Here's what I have so far (again, I've followed all the steps outlined in the linked question)

I've added the paths to my configuration properties, and to the Linker, but when I build, I get the following errors:

I'm sure that it's just something simple I've missed being new to this, but I've been pulling my hair for a few hours on it with no luck so far. Any suggestions would be met with unbridled gratitude :-)

0 投票
1 回答
495 浏览

hunspell - Hunspell c++ 和俄语

我在使用带有俄语词典的 hunspell 拼写检查器时遇到了一些问题。问题是我的项目适用于英语,但如果我要连接俄语并尝试检查我的话的拼写,它总是返回 0(意味着没有结果)。这是我的代码(适用于英语)

结果为“0”。可能是编码中的问题。我试过 UTF-8、KOI8-R 字典。使用 UTF-8 字典时无法读取“单词”,使用 KOI8-R 时结果为 0。

它太糟糕了,我必须让它运作良好。ps hunspell+vs2008 c++最新版本

0 投票
1 回答
68 浏览

hunspell - Hunspell 返回布尔值而不是单词

请帮助解决 Hunspell 问题,不能让这些东西正常工作。这是我的代码,它返回布尔值 TRUE 而不是单词的建议。

我怎样才能使这个建议有效?

0 投票
1 回答
2329 浏览

spell-checking - Hunspell 的示例/教程

我试过用 Hunspell 浏览 SourceForge 上的文档,但我还是迷路了。是否有任何 C++ 初学者能够遵循的体面的 hunspell 示例?如果做不到这一点,是否有更容易使用的免费/开源拼写检查器?

0 投票
1 回答
148 浏览

python-2.7 - 无法在 Python 中使用 ctypes 导入 NHunspell.dll

我需要导入'NHunspell.dll'用于拼写检查目的的特定 dll。我正在使用Python作为软件。尽管我检查了几个网站以正确使用ctypes,但我一直无法正确加载 dll。

当我使用此代码时。

我收到一个错误

我想这可能是dll结构的问题。但我不知道如何正确导入 dll。

0 投票
0 回答
416 浏览

mingw - 在 Windows 上从源代码编译 hunspell 的问题

您好我正在尝试从以下编译一个名为 hunspell 的 python 模块。

但我收到以下错误消息。

我尝试下载 libhunspell-1.2-0.dll 并将其放入我的系统中。但我仍然收到相同的错误消息。我该如何处理?我有 Windows 7 和mingw

0 投票
1 回答
247 浏览

ruby-on-rails - TinyMCE Spellcheck 预期 Rails 中的 JSON 响应

我正在使用 TinyMCE,并且我使用 FFI-Hunspell 推出了自己的拼写检查器。

我只是在渲染这个硬编码的响应,但是当我单击 WYSIWYG 编辑器中的拼写检查按钮时,它说没有任何拼写错误的单词。

那么,JSON 应该是什么样的呢?

0 投票
1 回答
412 浏览

aspell - Hunspell/Aspell 数据转换为人类可读的变形列表

有没有一种简单的方法可以从 Hunspell/Aspell 字典数据文件生成人类可读的变形列表?

例如,我想生成以下输出(针对不同的语言):

...

书,书

书,书,预定,预定

...

去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去了

...

我查看了 Hunspell/Aspell 文档,但找不到可以执行此操作的 API 调用。

0 投票
2 回答
1835 浏览

c# - 如何在不区分大小写的情况下检查 Hunspell 中的拼写

嗨,我正在制作一个桌面应用程序 (C#),用于检查输入单词的拼写。我正在使用我使用 NuGet 添加到我的项目中的 Hunspell。我有 2 个文件 aff 文件和 dic 文件。

isExist 等于 false,因为在我的 .dic 文件中,正确的拼写是“thesis”。即使我使用 .lower() 并输入专有名称,isExist 也会变为错误。

你能帮我解决这个问题吗?