2 releases
Uses old Rust 2015
0.1.1 | Sep 7, 2018 |
---|---|
0.1.0 | Sep 7, 2018 |
#4 in #pronunciation
7KB
Rhyme
This crate uses the CMU Pronunciation Dictionary to determine if two words rhyme or not
Example
extern crate rhyme;
use rhyme::{Result, rhymes};
fn main() -> Result<()> {
if rhyme.rhymes("rust", "trust").unwrap_or(false) {
println!("'rust' and 'trust' rhyme");
}
Ok(())
}
lib.rs
:
CMU Sphinx-based Rhyme Tester
Small utility to test whether two words rhyme or not. Uses the cmudict
crate and the CMU
Pronunciation dictionary
Example
extern crate rhyme;
use rhyme::Rhyme;
let rhyme = Rhyme::new()?;
if rhyme.rhymes("rust", "trust").unwrap_or(false) {
println!("'rust' and 'trust' rhyme");
}
Dependencies
~16–25MB
~422K SLoC