Spelling.Checker¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/en |
|||
r/w/co |
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class Spelling.Checker(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
SpellingChecker
is the core class of libspelling. It provides high-level APIs for spellchecking.- classmethod get_default()¶
- Returns:
a
SpellingChecker
- Return type:
Gets a default
SpellingChecker
using the default provider and language.
- classmethod new(provider, language)¶
- Parameters:
- Returns:
a newly created
SpellingChecker
- Return type:
Create a new
SpellingChecker
.
- check_word(word, word_len)¶
- Parameters:
- Returns:
True
if the dictionary contains the word- Return type:
Checks if the active dictionary contains word.
- get_extra_word_chars()¶
- Returns:
extra word characters
- Return type:
Gets the extra word characters of the active dictionary.
- get_language()¶
-
Gets the language being used by the spell checker.
- get_provider()¶
- Returns:
a
SpellingProvider
- Return type:
Gets the spell provider used by the spell checker.
Currently, only Enchant-2 is supported.
- ignore_word(word)¶
- Parameters:
word (
str
) – a word to be ignored
Requests the active dictionary to ignore word.
Property Details¶
- Spelling.Checker.props.language¶
- Name:
language
- Type:
- Default Value:
- Flags:
The “language” to use when checking words with the configured
SpellingProvider
. For example,en_US
.
- Spelling.Checker.props.provider¶
- Name:
provider
- Type:
- Default Value:
- Flags:
The “provider” property contains the provider that is providing information to the spell checker.
Currently, only Enchant is supported, and requires using the
SpellingEnchantProvider
. Setting this toNone
will get the default provider.