Questions tagged [hunspell]

An open source spell checker, used by OpenOffice, Firefox, Google Chrome and Mac OS X.

Hunspell is a spell checker and morphological analyzer designed for languages with rich morphology and complex word compounding and character encoding, originally designed for the Hungarian language.

http://en.wikipedia.org/wiki/Hunspell

238 questions
2
votes
1 answer

Pipe arguments to hunspell with xargs

I'm trying to run hunspell over my source tree. However when I run this: find . -name *.html | xargs hunspell -H The Hunspell editor comes up on the screen, but it won't accept any typed input - all of the input appears at the next command prompt…
Kevin Burke
  • 61,194
  • 76
  • 188
  • 305
2
votes
0 answers

How to combine Lucene & Hunspell to conduct search in PDF documents?

I am trying to implement hunspell into lucene. The task is to make an application which finds words in pdf documents. I know what I have to do generaly but not specific. I know that I have to make a list with indexes which contain the root of the…
2
votes
2 answers

Emacs on Win32 with hunspell - personal dictionary does not get saved

So I have a working setup for Emacs (v23.3.1) on Windows 7 using hunspell after following the instructions in the wiki. http://www.emacswiki.org/emacs/InteractiveSpell When I spell check a document (M-x ispell), emacs gives me the options to insert…
Imad
  • 231
  • 2
  • 7
2
votes
1 answer

sequence of entries in the BREAK tag

Does the sequence of entries in the BREAK tag matter? For e.g. I have this affix file BREAK 2 BREAK s BREAK es And there is only one word in the dictionary file. die And if I type "dies" will it be marked as incorrect? If I change the sequence as…
shantanuo
  • 31,689
  • 78
  • 245
  • 403
2
votes
0 answers

Check spelling of words containing a period (dot) character on the command line

I'm trying to get our CI/CD pipeline to spell check a website. To make it work we need a custom dictionary of correct words e.g. names of products. I tried Aspell and Hunspell, but in both cases I've ran into the same problem - names with period in…
2
votes
2 answers

PHP 8 - Enchant not working - Broker returns an empty array

I am using PHP 8 on Xampp (Windows) Have added extension=php_enchant.dll to php.ini php directory added to windows PATH copied libenchant_hunspell.dll / libenchant_ispell.dll / libenchant_myspell.dll to [php]/lib/enchant moved *.dic & *.aff to…
iceman2894
  • 67
  • 1
  • 9
2
votes
2 answers

NodeJS: loading ES Modules and native addons in the same project

Before the actual questions (see at the end), please let me show the steps that lead to that question through an example: Creating the project tests$ mkdir esm && cd esm tests/esm$ nvm -v 0.37.2 tests/esm$ nvm use v15 Now using node v15.6.0 (npm…
rellampec
  • 698
  • 6
  • 22
2
votes
2 answers

Hunspell for Portuguese shows correctly spelled words as misspelled

I am using the latest version of spacy_hunspell with Portuguese dictionaries. And, I realized that when I have inflected verbs containing special characters, such as the acute accent (`) and the tilde (~), the spellchecker fails to retrieve the…
revy
  • 647
  • 2
  • 10
  • 29
2
votes
3 answers

Windows directory that will never contain non-ASCII characters for temp file?

Using MinGW 7.3.0 on Windows, Hunspell can't load the dictionary files from locations that have non-ASCII characters because of Windows limitations. I've tried everything[1] and I'm now resorting to copying the file to a path without ASCII…
Vadim Peretokin
  • 2,221
  • 3
  • 29
  • 40
2
votes
1 answer

Problem of gcc when i want pip3 install hunspell

I am working on mac OS. I used "brew install hunspell" but now I have a problem to make "pip3 install hunspell" I tried brew install gcc but it doenst' solve the problem. MacBook:bin $ pip3 install hunspell Collecting hunspell Using cached…
A Dumas
  • 55
  • 6
2
votes
2 answers

How to using lapply on str_replace_all and hunspell_suggest to replace all misspelled words?

I'm trying to figure out how to incorporate str_replace_all and hunspell_suggest together in an lapply. Here is my current situation: I have a data frame that looks like this: library(hunspell) df1 <- data.frame("Index" = 1:7, "Text" = c("Brad came…
cheklapkok
  • 439
  • 1
  • 5
  • 11
2
votes
1 answer

Problem with statically linking hunspell library in visual studio 2010

I can't statically link hunspell library to my C++ project in Visual Studio 2010. I downloaded hunspell and went to hunspell-1.3.1\src\win_api folder. I opened libhunspell.vcproj file in visual studio 2010 and converted project. I built solution in…
2
votes
2 answers

conda cythen pip pkg hunspell CyHunspell AttributeError: module 'hunspell' has no attribute 'HunSpell'

I installed pip install hunspell and the following statement runs fine: import hunspell; hobj = hunspell.HunSpell('/usr/share/hunspell/en_US.dic', '/usr/share/hunspell/en_US.aff') ; print( "PY_test: hunspell: " + str( hobj.spell('spookie') )…
InLaw
  • 2,537
  • 2
  • 21
  • 33
2
votes
0 answers

Spellchecking developer documents?

I am working on a project which spellchecks developer documented, e.g Readme files. The project uses Hunspell for spellchecking, but developer documents contain a lot of jargon which Hunspell thinks is misspelled. My workaround so far has been to…
Matt
  • 718
  • 6
  • 20
2
votes
1 answer

Word frequency not accurate after text stemming

Thank you for taking the time to read my post. Newbie here and this here is my first R script with some sample data. library(tm) library(hunspell) library(stringr) docs <- VCorpus(VectorSource('He is a nice player, She could be a better player.…
GraveDigger
  • 53
  • 1
  • 3