Skip to content

Add smarter traversal for SpellCheck.PrefixLookup #22

@jeanbern

Description

@jeanbern

Instead of the completely arbitrary "maxErrors = prefix.Length > 4 ? 2 : prefix.Length > 2 ? 1 : 0", we could use the metric. A more likely scenario is a new interface type that would be a preemptive filter-metric, since a partial traversal of "word" by "wo" will fail, even though we mean to go further.
If there is a new interface for this and we feed it to the constructor, we should really provide a default, because this is going too far down the rabbit-hole of customization.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions