SymSpell
Rust implementation of brilliant SymSpell originally written in C# by @wolfgarbe.
Usage
extern crate symspell;
use ;
Advanced Usage
Using Custom Settings
let mut symspell: = default
.max_dictionary_edit_distance
.prefix_length
.count_threshold
.build
.unwrap
String Strategy
String strategy is abstraction for string manipulation, for example preprocessing.
There are two strategies included:
UnicodeiStringStrategy- Doesn't do any prepocessing and handles strings as they are.
AsciiStringStrategy- Transliterates strings into ASCII only characters.
- Useful when you are working with accented languages and you don't want to care about accents, etc
To configure string strategy just pass it as a type parameter:
let mut ascii_symspell: = default;
let mut unicode_symspell: = default;