12 releases (6 breaking)

0.7.0 Nov 28, 2021
0.6.1 Jan 4, 2019
0.5.1 Jul 26, 2018
0.4.0 Mar 17, 2018
0.1.1 Jan 8, 2018

#8 in #meaning

Download history 11/week @ 2024-02-19 10/week @ 2024-02-26 22/week @ 2024-03-11 148/week @ 2024-04-01

170 downloads per month
Used in backslash-z

MIT/Apache

9KB
133 lines

daumdic-rs

circleci crate.io docs.rs License: MIT License: Apache-2.0

Daum Dictionary API wrapper written in Rust, inspired by daumdic-ruby

extern crate daumdic;

fn main() {
    let res = daumdic::search("ironic").unwrap();
    println!("{}", res);
    // => "ironic  [airάnik]  아이러니한, 역설적인, 모순적인, 반어적인"
}

lib.rs:

daumdic

Find word (Korean, English, Japanese, Chinese, ...) in Daum Dictionary and returns its meaning and pronuciation.

Examples

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

Dependencies

~6–20MB
~307K SLoC