MetaPhrase

An open source translation editor for native mobile app localization.

View project on GitHub

//MetaPhrase/com.github.diegoberaldin.metaphrase.domain.spellcheck.spelling/Spelling

Spelling

interface Spelling

Contract for the spelling checker.

Inheritors

 
DefaultSpelling

Properties

Name Summary
isInitialized [jvm]
abstract val isInitialized: Boolean
Flag indicating whether the spell checker is initialized

Functions

Name Summary
addUserDefinedWord [jvm]
abstract suspend fun addUserDefinedWord(word: String)
Add a user defined word.
check [jvm]
abstract fun check(word: String): List<String>
Check a word for spelling mistakes.
checkSentence [jvm]
abstract fun checkSentence(message: String): List<SpellCheckCorrection>
Check a whole sentence for spelling mistakes.
getLemmata [jvm]
abstract fun getLemmata(message: String): List<String>
Analyze a message to get a list of word stems.
setLanguage [jvm]
abstract suspend fun setLanguage(code: String)
Set language for spell check.