Crate webster[][src]

Expand description

webster-rs

A Rust library containing an offline version of webster’s dictionary.

Add to Cargo.toml

webster = 0.2.1

Simple example:

fn main() {
    let word = "silence";

    let definition = webster::definition(word).unwrap();

    println!("{} definition: {}", word, definition);
}

The definitions are not great but they’ll do for simple projects if you need an open source local dictionary API.

Structs

DICT

Functions

definition

Translate a word