pona/word
Types
pub type Word {
Word(word: String, def: String)
}
Constructors
-
Word(word: String, def: String)
pub type WordError {
JSONDecodeError(json.DecodeError)
DynamicError(dynamic.Dynamic)
WordNotFound(String)
DataParsingError(String)
}
Constructors
-
JSONDecodeError(json.DecodeError)
-
DynamicError(dynamic.Dynamic)
-
WordNotFound(String)
-
DataParsingError(String)
pub type WordFetcher {
WordFetcher(word: String, lang: String)
}
Constructors
-
WordFetcher(word: String, lang: String)
Constants
pub const sona_linku: String
Functions
pub fn fetch(wf: WordFetcher) -> Result(Word, WordError)
pub fn get_definition(word: Word) -> String
pub fn language(wf: WordFetcher, new: String) -> WordFetcher
pub fn word(word: String) -> WordFetcher