//MetaPhrase/com.github.diegoberaldin.metaphrase.domain.spellcheck.spelling/DefaultSpelling
DefaultSpelling
[jvm]
class DefaultSpelling(userDefinedWordsRepository: UserDefinedWordsRepository) : Spelling
Constructors
DefaultSpelling | [jvm] constructor(userDefinedWordsRepository: UserDefinedWordsRepository) |
Types
Name | Summary |
---|---|
Companion | [jvm] object Companion |
Properties
Name | Summary |
---|---|
isInitialized | [jvm] open override val isInitialized: Boolean Flag indicating whether the spell checker is initialized |
Functions
Name | Summary |
---|---|
addUserDefinedWord | [jvm] open suspend override fun addUserDefinedWord(word: String) Add a user defined word. |
check | [jvm] open override fun check(word: String): List<String> Check a word for spelling mistakes. |
checkSentence | [jvm] open override fun checkSentence(message: String): List<SpellCheckCorrection> Check a whole sentence for spelling mistakes. |
getLemmata | [jvm] open override fun getLemmata(message: String): List<String> Analyze a message to get a list of word stems. |
setLanguage | [jvm] open suspend override fun setLanguage(code: String) Set language for spell check. |