Provide abstracted access to a range of spellchecking backends. Also provides word suggestions. The API is inspired by enchant, but other backends can be added that implement the same API.
Bases: object
Base class for all spelling providers. Supports some abstract methods for checking words and getting suggestions.
If word is a valid word in self._language, return True.
Parameters : |
|
---|
Return a list of all languages supported by the registered languages. E.g.: [‘en’, ‘en_GB’, ‘en_US’, ‘de’, ...]
From the set of registered languages, select the first language for language.
Parameters : |
|
---|
For a given fragment (i.e., part of a word or a word by itself), provide corrections (fragment may be misspelled) or completions as a list of strings.
Parameters : |
|
---|
Bases: exceptions.Exception
Exception to be raised when a specific language could not be found.
Bases: exceptions.Exception
Exception to be raised when a language-using method is called but no language was selected prior to the call.