Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add deletion 'misspelling' feature / option #12

Open
joshjung opened this issue Jul 3, 2018 · 0 comments
Open

Add deletion 'misspelling' feature / option #12

joshjung opened this issue Jul 3, 2018 · 0 comments

Comments

@joshjung
Copy link
Owner

joshjung commented Jul 3, 2018

I think it would be fairly trivial to add a feature to the Trie that allows it during lookups to "look ahead" one character to allow for matches on misspellings where a character was missed. For example:

Inserted: "hello"
Searched: "helo"

If we lookahead 1-character at the first "l", we could match on "helo" as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant