Crate daumdic

Source
Expand description

A Rust library that searches for words (Korean, English, Japanese, Chinese, …) in the Daum dictionary and returns their meanings and pronunciations.

let res = &daumdic::search("독수리").await.unwrap().words[0];
assert_eq!(res.word, "독수리");
assert_eq!(res.lang, daumdic::Lang::Korean);
println!("{:?} {}", res.pronounce, res.meaning.join(", "));

Structs§

Search
A type that contains the search results for words and alternative search terms returned by the search function.
Word
A type that contains the meaning, pronunciation, and language of each word returned by the search function.

Enums§

DaumdicError
An error type for daumdic crate.
Lang
A type indicating the language of a word.

Functions§

search
A function that sends an HTTP GET request to the Daum dictionary to search for a word.