Crate rhyme[][src]

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");
}

Structs

Rhyme

Wrapper around the Cmudict type

Functions

rhymes

Shortcut for downloading the CMU Dict and testing the two words

Type Definitions

Result

Shortcut for Result<T, failure::Error>