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
Case of illogical domain suggestion #20
Comments
What about hacking a js implementation of keyboard distance: |
Very interesting, that would actually be really cool (and hopefully more effective). Open to a pull request for it ;) |
var email_checker = function(email) {
} |
fck parser. |
The issue here is that the implementation doesn't allow for two domains to be the same distance apart:
Add Two options I see are that the search could be extended to be "<=" and to return an array of multiple equidistant domains to the implementing application to choose amongst, or the keyboard distance can be used to return the closest if the first search returns multiple equidistant domains. |
An initial implementation is in one of my branches based on the Perl implementation referenced above. Mailcheck will fall back to the keyboard distance if the first pass returns multiple equidistant domains. I'll make a pull request after some touch-up and more testing. |
@hpshelton That's awesome. Really looking forward to it. |
Hi there,
i found case of illogical domain suggestion:
domains = ["ua.com", "ui.com"]
, input val isuser@uo.com
, suggestion:user@ua.com
, but if you look at keyboard image - it's obvious that i've mispelled for domainui.com
I clearly understand that built-in algorithm doesn't solve all cases, but i suggest to think about how to solve similar cases.
The text was updated successfully, but these errors were encountered: