Struct symspell::SymSpell [] [src]

pub struct SymSpell<T: StringStrategy> { /* fields omitted */ }

Methods

impl<T: StringStrategy> SymSpell<T>
[src]

[src]

Find suggested spellings for a given input word, using the maximum edit distance specified during construction of the SymSpell dictionary.

Arguments

  • input - The word being spell checked.
  • verbosity - The value controlling the quantity/closeness of the retuned suggestions.
  • max_edit_distance - The maximum edit distance between input and suggested words.

Examples

let mut symspell: SymSpell<AsciiStringStrategy> = SymSpell::default();
symspell.load_dictionary("data/frequency_dictionary_en_82_765.txt", 0, 1, " ");
symspell.lookup("whatver", Verbosity::Top, 2)

[src]

[src]

Trait Implementations

impl<T: PartialEq + StringStrategy> PartialEq for SymSpell<T>
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl<T: StringStrategy> Default for SymSpell<T>
[src]

[src]

Returns the "default value" for a type. Read more

Auto Trait Implementations

impl<T> Send for SymSpell<T> where
    T: Send

impl<T> Sync for SymSpell<T> where
    T: Sync