Описание тега 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 providersenchant_broker_dict_exists
— Whether a dictionary exists or not. Using non-empty tagenchant_broker_free_dict
— Free a dictionary resourceenchant_broker_free
— Free the broker resource and its dictionariesenchant_broker_get_error
— Returns the last error of the brokerenchant_broker_init
— create a new broker object capable of requestingenchant_broker_list_dicts
— Returns a list of available dictionariesenchant_broker_request_dict
— create a new dictionary using a tagenchant_broker_request_pwl_dict
— creates a dictionary using a PWL fileenchant_broker_set_ordering
— Declares a preference of dictionaries to use for the languageenchant_dict_add_to_personal
— add a word to personal word listenchant_dict_add_to_session
— add 'word' to this spell-checking sessionenchant_dict_check
— Check whether a word is correctly spelled or notenchant_dict_describe
— Describes an individual dictionaryenchant_dict_get_error
— Returns the last error of the current spelling-sessionenchant_dict_is_in_session
— whether or not 'word' exists in this spelling-sessionenchant_dict_quick_check
— Check the word is correctly spelled and provide suggestionsenchant_dict_store_replacement
— Add a correction for a wordenchant_dict_suggest
— Will return a list of values if any of those pre-conditions are not met
Also see: