Spelling.Language
- Subclasses:
None
Properties
Name |
Type |
Flags |
Short Description |
code
|
str
|
r/w/co |
The language code |
Class Details
-
class Spelling.Language(**kwargs)
- Bases:
GObject.Object
- Abstract:
Yes
- Structure:
Spelling.LanguageClass
-
add_word(word)
- Parameters:
word (str
) –
-
contains_word(word, word_len)
- Parameters:
-
- Return type:
bool
-
get_code()
- Return type:
str
- Return type:
str
-
ignore_word(word)
- Parameters:
word (str
) –
-
list_corrections(word, word_len)
- Parameters:
word (str
) – a word to be checked
word_len (int
) – the length of word, or -1 if word is zero-terminated
- Returns:
A list of possible corrections, or None
.
- Return type:
[str
] or None
Retrieves a list of possible corrections for word.