Build Status Coverage Status Crates.io Version Crates.io LICENSE

ttaw

talking to a wall, a piecemeal natural language processing library.

A couple caveats

Functionality

Rhyme

rust extern crate ttaw; use ttaw::pronounciation; assert_eq!(true, pronounciation::rhyme("here", "near")); assert_eq!(false, pronounciation::rhyme("shopping", "cart"));

Alliteration

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

Double Metaphone

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