poetrie-0.9.0 has been yanked.
POETRIE
Poetrie means poetic trie. Poetrie is designated for searching common suffixes of words.
Basic Usage
classic use case
let mut poetrie = new;
let words =
.map;
for w in words
let probe = new_from_str.unwrap;
let matchee = poetrie.suf;
assert_eq!;
let probe = new_from_str.unwrap;
assert_eq!;
handy use case
Thinking about what could be good rhyming with word of choise, simple try search for that suffix directly. Let say, having "lyrics" as word without match, thinking it should rhyme with something ending with "ynx".
let mut poetrie = new;
let words = .map;
for w in words
let probe = new_from_str.unwrap;
let matchee = poetrie.suf;
assert_eq!;
Now, one goes: "As the paws in a snow, layed down by lightening lynx, my word goes there and forth, composing the aerial lyrics.".