merriam-webster-transformers

Crates.iomerriam-webster-transformers
lib.rsmerriam-webster-transformers
version0.1.0-alpha
sourcesrc
created_at2023-10-14 05:31:06.323734
updated_at2023-10-14 05:31:06.323734
descriptionParsers and transformers for non-standard text markup in Merriam-Webster's Collegiate Dictionary API
homepagehttps://github.com/fyko/merriam-webster
repositoryhttps://github.com/fyko/merriam-webster
max_upload_size
id1002939
size15,655
Carter (Fyko)

documentation

README

Merriam Webster Transformers

Parsers and transformers for non-standard text markup in Merriam-Webster's Collegiate Dictionary API

CI Crate Docs

Example

Coming Soon

use merriam_webster_transformers::{parse_string, transformers::Markdown};

let input = "{it}monitors{\/it} and instructors for troops green in the art of war";
let parsed = parse_string(input.to_string())?;
let transformed = Markdown::transform(parsed)?;

println!("{transformed}");
// *monitors* and instructors for troops green in the art of war

License

Licensed under either of Apache License, Version 2.0 or MIT license at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this crate by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
Commit count: 7

cargo fmt