Questions tagged [enchant]

Enchant is a wrapper library for various spellchecking back-ends like Aspell or MySpell. It's part of the AbiWord project.

Enchant (libenchant) provides a uniform abstraction layer for multiple common spell-checking libraries.

The intent is to provide plug-in spellchecking capabilities to word processors and text editors by bridging the gap to spellcheckers that are already installed on a system.

The library is written in C/C++ and provides C/C++ bindings natively. There also are 3rd-party bindings for other programming languages, for example for Python, PHP, Ruby.

The public API of the Enchant library:

  • enchant_broker_describe — Enumerates the Enchant providers
  • enchant_broker_dict_exists — Whether a dictionary exists or not. Using non-empty tag
  • enchant_broker_free_dict — Free a dictionary resource
  • enchant_broker_free — Free the broker resource and its dictionaries
  • enchant_broker_get_error — Returns the last error of the broker
  • enchant_broker_init — create a new broker object capable of requesting
  • enchant_broker_list_dicts — Returns a list of available dictionaries
  • enchant_broker_request_dict — create a new dictionary using a tag
  • enchant_broker_request_pwl_dict — creates a dictionary using a PWL file
  • enchant_broker_set_ordering — Declares a preference of dictionaries to use for the language
  • enchant_dict_add_to_personal — add a word to personal word list
  • enchant_dict_add_to_session — add 'word' to this spell-checking session
  • enchant_dict_check — Check whether a word is correctly spelled or not
  • enchant_dict_describe — Describes an individual dictionary
  • enchant_dict_get_error — Returns the last error of the current spelling-session
  • enchant_dict_is_in_session — whether or not 'word' exists in this spelling-session
  • enchant_dict_quick_check — Check the word is correctly spelled and provide suggestions
  • enchant_dict_store_replacement — Add a correction for a word
  • enchant_dict_suggest — Will return a list of values if any of those pre-conditions are not met

Also see:

52 questions
0
votes
1 answer

Javascript Replacing an Array Result in Changing The Whole Column

i'm having a difficulties with javascript, im trying to create a function to generate a map in a game, As you can see below. The basic pattern is [9, 3, 4, 4, 4, 4, 4, 4, 5, 9] as the tile image frame. I want to change some of the 4 tile into 12…
0
votes
2 answers

Character frame movement in Enchant.js

I can't seem to get the frames working. Is there a certain format for this? I have a png, but if I call a certain amount of frames: this.frame = [2,3,4]; The other parts of the animation don't work. Let me know if I need a certain option.
0
votes
2 answers

Difficulties installing php enchant on Windows

Okay, I've read the php.net docs, I've browsed numerous sites including stackoverflow for solutions and nothing has helped. So I'm asking, is there anyone who can post a definitive guide for getting enchant to work on Windows? My set up…
Rohan Deshpande
  • 694
  • 8
  • 22
0
votes
1 answer

PHP enchant: where to place the myspell dictionaries (Mac OSX)

Array ( [0] => Array ( [name] => aspell [desc] => Aspell Provider [file] => /usr/local/Cellar/enchant/1.6.0/lib/enchant/libenchant_aspell.so ) [1] => Array ( [name] =>…
nuqqsa
  • 4,511
  • 1
  • 25
  • 30
0
votes
0 answers

Enchant does not works

I placed fa_IR.dic and fa_IR.aff files in d:/fa and runned:
Handsome Nerd
  • 17,114
  • 22
  • 95
  • 173
-1
votes
1 answer

Module enchant nor found

I added pyenchant to my requirements files then I tried adding this in my dockerfile (python version 3.10) (this worked on version 3.7 but not now): RUN apt install --yes libenchant-2-2 RUN apt-get install -y gdebi RUN curl -sLO…
None
  • 17
  • 4
-3
votes
3 answers

How to validate a word in python?

I have a list in Python like this: `list = ['thatCreation', 'happeningso', '’', 'comebecause',] Question : I want specific words: For e.g. -> 'thatCreation' -> 'that', 'creation' 'happeningso' -> 'happening', 'so' …
1 2 3
4