In Python version, pass the list of words directly into the algorithm, and it will compare words. In Rust version, use Algorithm.for_words:https://docs.rs/textdistance/1.1.0/textdistance/trait.Algorithm.html#method.for_words
Rust @programming.dev gram @lemmy.ml 2y ago textdistance.rs, Rust crate with 25+ algorithms for comparing strings. Now with no_std support! github.com /life4/textdistance.rs
Rust @programming.dev gram @lemmy.ml 2y ago GitHub - life4/textdistance.rs: 🦀📏 Rust library to compare strings (or any sequences). 25+ algorithms, pure Rust, common interface, Unicode support. github.com /life4/textdistance.rs
In Python version, pass the list of words directly into the algorithm, and it will compare words. In Rust version, use Algorithm.for_words:
https://docs.rs/textdistance/1.1.0/textdistance/trait.Algorithm.html#method.for_words