
jQuery
Mailcheck plugin
(github) - client-side email verification for typos using a predefined list (for example, the most popular email services).
According to the
application (en) of the authors (Kicksend), this plugin increased the number of email confirmations when registering by 50%.
')
In order for the plugin to check Cyrillic domains for typos , we rule the weights (
Line 30 ):
var result = Kicksend.mailcheck.suggest(encodeURI(this.val()), opts.domains);
replace
encodeURI(this.val())
with
this.val()
(important! the encoding must be UTF-8)
Checking:
Option illogical sentences
The plugin uses
the search algorithm of the largest common substring , which, in general,
copes well with the suggestions of corrections (see the demo), however, there are nontrivial cases:
Input data:domains: ["ua.com", "ui.com"]
email: user@uo.com
Conclusion: user @ u
a .com

If you look at the keyboard, it is obvious that āoā is closer to āiā - another domain - ui.com.
I suggest the habrayusers discuss how to improve the algorithm so that it correctly works out similar typos.
(
github issue # 20 )