kenburcham

kenburcham / KensEmailValidator / 0.1.0

README.md

Overview

Example email validator that returns "true" only when 1) the email address matches the standard regex pattern and 2) the domain is recognized by Alexa and has a rank.

Applicable Scenarios and Problems

Useful for increasing the probability that an email address is valid. However, it should be noted that many valid domains may very well serve email even without an Alexa ranking, though this algorithm would return "false"

Usage

Input

The email address to check.

Output

The algorithm returns:

ParameterDescription
inputThe input you gave
valid"true" or "false"
alexa_rankinteger of rank returned by Alexa

Examples

"someone@protonmail.com"

returns: { "alexa_rank": "2836", "input": "someone@protonmail.com", "valid": "true" }

"someone@bademail.com"

returns: { "input": "someone@bademail.com", "valid": "false" }