A rust Dictionary Trie. Performs autosuggestions on words with typos & autocompletes words 🦀
Add
auto_correct_n_suggest = "1.0.0"
to your Cargo.toml
```rust use autocorrectn_suggest;
let mut dictionary = autocorrectnsuggest::Dictionary::new(); let word1 = "Dog".tostring(); let word2 = "Dogecoin".to_string(); dictionary.insert(word1); dictionary.insert(word2);
let wordsavailable = dictionary.findwordsbasedonprefix("Dog".tostring())?; // vec!["Dog", "Dogecoin"]
let typoautosuggestions = dictionary.autosuggestalternativewords("Dogecoins".tostring())?; // vec!["Dogecoin"]
```