noeme

Crates.ionoeme
lib.rsnoeme
version0.1.6
created_at2025-09-15 21:58:05.442515+00
updated_at2025-09-25 22:28:47.532882+00
descriptionDeeply explain a given word, including its pronunciation, meanings, and sample sentences.
homepage
repositoryhttps://github.com/zennolux/noeme
max_upload_size
id1840619
size66,004
(zennolux)

documentation

https://docs.rs/noeme

README

cargo add noeme
use anyhow::Result;
use noeme::{Noeme,Jsonify}

#[tokio::main]
async fn main() -> Result<()> {
    //define a valid word
    let word = "exactly";

    //this will get the instance
    let noeme = Noeme::from(word).await?;

    //serialize the whole instance to json
    let result = noeme.to_json()?;

    //or just serialize the pronunciation field to json
    let pronunciation = noeme.pronunciation.to_json()?;

    //or just serialize the basic_meanings field to json
    let basic_meanings = noeme.basic_meanings.to_json()?;

    //or just serialize the advanced_meanings field to json
    let advanced_meanings = noeme.advanced_meanings.to_json()?;

    //or just serialize the sentences field to json
    let sentences = noeme.sentences.to_json()?;
}
Commit count: 158

cargo fmt