talking to a wall, a piecemeal natural language processing library.
rust
extern crate ttaw;
use ttaw::pronounciation;
assert_eq!(true, pronounciation::rhyme("here", "near"));
assert_eq!(false, pronounciation::rhyme("shopping", "cart"));
rust
extern crate ttaw;
use ttaw::pronounciation;
assert_eq!(true, pronounciation::alliteration("a group of bounding bears"));
assert_eq!(true, pronounciation::alliteration("boucing bears are everywhere"));
assert_eq!(false, pronounciation::alliteration("The quick brown fox jumps over the lazy dog."));
```rust extern crate ttaw; use ttaw::pronounciation; asserteq!(pronounciation::doublemetaphone("Arnow").primary, "ARN"); asserteq!(pronounciation::doublemetaphone("Arnow").secondary, "ARNF");
asserteq!(pronounciation::doublemetaphone("detestable").primary, "TTSTPL"); asserteq!(pronounciation::doublemetaphone("detestable").secondary, "TTSTPL"); ```