Skip to content

Misspelled word suggestions #45

@tgross35

Description

@tgross35

It may be good to provide a SuggestionConfig or similar struct that could be passed as an argument to our .suggest function (or similar). There are some different functionalities we could use:

  • REP: simple replacements bassed on the affix config file
  • Phonetic replacements from the affix config file. These seem more rare and are likely only useful for text to speech
  • Levenshtein distance
  • TryChars just sample with one different

Possible API (from #16)

fn check_with_suggestions(&self, s: &str) -> Suggestions

enum Suggestions {
    Correct
    Incorrect(Vec<&str>)
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions