# coding:utf-8
"""
Spelling corrector library, used to correct common typos in domains like
gmal.com instead of gmail.com.

The spelling corrector uses difflib which in turn uses the
Ratcliff-Obershelp algorithm [1] to compute the similarity of two strings.
This is a very fast an accurate algorithm for domain spelling correction.

The (only) public method this module has is suggest(word), which given
a domain, suggests an alternative or returns the original domain
if no suggestion exists.

[1] http://xlinux.nist.gov/dads/HTML/ratcliffObershelp.html
"""

import difflib


def suggest(word, cutoff=0.77):
    """
    Given a domain and a cutoff heuristic, suggest an alternative or return the
    original domain if no suggestion exists.
    """
    if word in LOOKUP_TABLE:
        return LOOKUP_TABLE[word]

    guess = difflib.get_close_matches(word, MOST_COMMON_DOMAINS, n=1, cutoff=cutoff)
    if guess and len(guess) > 0:
        return guess[0]
    return word

MOST_COMMON_DOMAINS = [
    # mailgun :)
    'mailgun.net',
    # The Top 200 domains from 30mm open events gathered during the
    # last 30 days prior to 8/22/2018
    '126.com',
    '163.com',
    'account.tradeshift.com',
    'aim.com',
    'airwallex.com',
    'alice.it',
    'ameritech.net',
    'anz.com',
    'aol.com',
    'apple.com',
    'asu.edu',
    'att.net',
    'bain.com',
    'bell.net',
    'bellsouth.net',
    'berkeley.edu',
    'bigpond.com',
    'bigpond.com.au',
    'bigpond.net.au',
    'bk.ru',
    'bluewin.ch',
    'bol.com.br',
    'btinternet.com',
    'centurylink.net',
    'cfl.rr.com',
    'charter.com',
    'charter.net',
    'citi.com',
    'colemanrg.com',
    'columbia.edu',
    'comcast.net',
    'compass.com',
    'cornell.edu',
    'cox.net',
    'cpp.edu',
    'cytonn.com',
    'deloitte.com',
    'det.nsw.edu.au',
    'docomo.ne.jp',
    'earthlink.net',
    'edumail.vic.gov.au',
    'eim.ae',
    'email.arizona.edu',
    'embarqmail.com',
    'emirates.net.ae',
    'excite.com',
    'exploretrip.com',
    'ext.uber.com',
    'ezweb.ne.jp',
    'free.fr',
    'freenet.de',
    'frontier.com',
    'frontiernet.net',
    'fuse.net',
    'g.austincc.edu',
    'ge.com',
    'gmail.com',
    'gmx.at',
    'gmx.com',
    'gmx.de',
    'gmx.net',
    'google.com',
    'googlemail.com',
    'gs.com',
    'guest.booking.com',
    'hanmail.net',
    'hotmail.ca',
    'hotmail.co.jp',
    'hotmail.co.nz',
    'hotmail.co.uk',
    'hotmail.com',
    'hotmail.com.au',
    'hotmail.de',
    'hotmail.es',
    'hotmail.fr',
    'hotmail.it',
    'i.softbank.jp',
    'icloud.com',
    'iinet.net.au',
    'inbox.ru',
    'indeedemail.com',
    'internationalsos.com',
    'internode.on.net',
    'iprimus.com.au',
    'jhu.edu',
    'jtbap.com',
    'juno.com',
    'kw.com',
    'laposte.net',
    'libero.it',
    'limetray.com',
    'list.ru',
    'live.ca',
    'live.co.uk',
    'live.com',
    'live.com.au',
    'live.fr',
    'live.nl',
    'lynk.co.in',
    'mac.com',
    'mail.com',
    'mail.ru',
    'marketplace.amazon.com',
    'marriott.com',
    'mavs.uta.edu',
    'mchsi.com',
    'mckinsey.com',
    'me.com',
    'mergermarket.com',
    'mindspring.com',
    'montaportal.nl',
    'msn.com',
    'msu.edu',
    'naver.com',
    'nc.rr.com',
    'netscape.net',
    'ntlworld.com',
    'optonline.net',
    'optusnet.com.au',
    'orange.fr',
    'ou.edu',
    'outlook.com',
    'outlook.com.au',
    'ozemail.com.au',
    'pacbell.net',
    'paisabazaar.com',
    'pegipegi.com',
    'prodigy.net',
    'ptd.net',
    'pwc.com',
    'q.com',
    'qiniu.com',
    'qq.com',
    'rambler.ru',
    'rev.com',
    'roadrunner.com',
    'rocketmail.com',
    'rogers.com',
    'rothschild.com',
    'royallepage.ca',
    'sasktel.net',
    'savaari.com',
    'sbcglobal.net',
    'seznam.cz',
    'sfr.fr',
    'shaw.ca',
    'sky.com',
    'skynet.be',
    'springspa.com',
    'stanford.edu',
    'student.sbccd.edu',
    'suddenlink.net',
    'swbell.net',
    'sympatico.ca',
    't-online.de',
    'tampabay.rr.com',
    'telenet.be',
    'telia.com',
    'telus.net',
    'terra.com.br',
    'tpg.com.au',
    'twc.com',
    'umich.edu',
    'umn.edu',
    'uol.com.br',
    'usc.edu',
    'utexas.edu',
    'uw.edu',
    'vepl.com',
    'verizon.net',
    'videotron.ca',
    'vt.edu',
    'wanadoo.fr',
    'web.de',
    'westnet.com.au',
    'wi.rr.com',
    'windstream.net',
    'wp.pl',
    'xtra.co.nz',
    'y7mail.com',
    'yahoo.ca',
    'yahoo.co.id',
    'yahoo.co.in',
    'yahoo.co.jp',
    'yahoo.co.nz',
    'yahoo.co.uk',
    'yahoo.com',
    'yahoo.com.ar',
    'yahoo.com.au',
    'yahoo.com.br',
    'yahoo.com.hk',
    'yahoo.com.mx',
    'yahoo.com.sg',
    'yahoo.com.tw',
    'yahoo.de',
    'yahoo.es',
    'yahoo.fr',
    'yahoo.it',
    'yandex.ru',
    'ymail.com'
]

# domains that the corrector doesn't fix that we should fix
LOOKUP_TABLE = {
    u'yahoo':       u'yahoo.com',
    u'gmail':       u'gmail.com',
    u'hotmail':     u'hotmail.com',
    u'live':        u'live.com',
    u'outlook':     u'outlook.com',
    u'msn':         u'msn.com',
    u'googlemail':  u'googlemail.com',
    u'aol':         u'aol.com',
    u'aim':         u'aim.com',
    u'icloud':      u'icloud.com',
    u'me':          u'me.com',
    u'mac':         u'mac.com',
    u'facebook':    u'facebook.com',
    u'comcast':     u'comcast.net',
    u'sbcglobal':   u'sbcglobal.net',
    u'bellsouth':   u'bellsouth.net',
    u'verizon':     u'verizon.net',
    u'earthlink':   u'earthlink.net',
    u'cox':         u'cox.net',
    u'charter':     u'charter.net',
    u'shaw':        u'shaw.ca',
    u'bell':        u'bell.net'
}

0e9f30bee23ff6fad3a25615c9e0ff047d3066a4
<mask token>

<mask token>


def suggest(word, cutoff=0.77):
    """
    Given a domain and a cutoff heuristic, suggest an alternative or return the
    original domain if no suggestion exists.
    """
    if word in LOOKUP_TABLE:
        return LOOKUP_TABLE[word]
    guess = difflib.get_close_matches(word, MOST_COMMON_DOMAINS, n=1,
        cutoff=cutoff)
    if guess and len(guess) > 0:
        return guess[0]
    return word


<mask token>

<mask token>


def suggest(word, cutoff=0.77):
    """
    Given a domain and a cutoff heuristic, suggest an alternative or return the
    original domain if no suggestion exists.
    """
    if word in LOOKUP_TABLE:
        return LOOKUP_TABLE[word]
    guess = difflib.get_close_matches(word, MOST_COMMON_DOMAINS, n=1,
        cutoff=cutoff)
    if guess and len(guess) > 0:
        return guess[0]
    return word


MOST_COMMON_DOMAINS = ['mailgun.net', '126.com', '163.com',
    'account.tradeshift.com', 'aim.com', 'airwallex.com', 'alice.it',
    'ameritech.net', 'anz.com', 'aol.com', 'apple.com', 'asu.edu',
    'att.net', 'bain.com', 'bell.net', 'bellsouth.net', 'berkeley.edu',
    'bigpond.com', 'bigpond.com.au', 'bigpond.net.au', 'bk.ru',
    'bluewin.ch', 'bol.com.br', 'btinternet.com', 'centurylink.net',
    'cfl.rr.com', 'charter.com', 'charter.net', 'citi.com', 'colemanrg.com',
    'columbia.edu', 'comcast.net', 'compass.com', 'cornell.edu', 'cox.net',
    'cpp.edu', 'cytonn.com', 'deloitte.com', 'det.nsw.edu.au',
    'docomo.ne.jp', 'earthlink.net', 'edumail.vic.gov.au', 'eim.ae',
    'email.arizona.edu', 'embarqmail.com', 'emirates.net.ae', 'excite.com',
    'exploretrip.com', 'ext.uber.com', 'ezweb.ne.jp', 'free.fr',
    'freenet.de', 'frontier.com', 'frontiernet.net', 'fuse.net',
    'g.austincc.edu', 'ge.com', 'gmail.com', 'gmx.at', 'gmx.com', 'gmx.de',
    'gmx.net', 'google.com', 'googlemail.com', 'gs.com',
    'guest.booking.com', 'hanmail.net', 'hotmail.ca', 'hotmail.co.jp',
    'hotmail.co.nz', 'hotmail.co.uk', 'hotmail.com', 'hotmail.com.au',
    'hotmail.de', 'hotmail.es', 'hotmail.fr', 'hotmail.it', 'i.softbank.jp',
    'icloud.com', 'iinet.net.au', 'inbox.ru', 'indeedemail.com',
    'internationalsos.com', 'internode.on.net', 'iprimus.com.au', 'jhu.edu',
    'jtbap.com', 'juno.com', 'kw.com', 'laposte.net', 'libero.it',
    'limetray.com', 'list.ru', 'live.ca', 'live.co.uk', 'live.com',
    'live.com.au', 'live.fr', 'live.nl', 'lynk.co.in', 'mac.com',
    'mail.com', 'mail.ru', 'marketplace.amazon.com', 'marriott.com',
    'mavs.uta.edu', 'mchsi.com', 'mckinsey.com', 'me.com',
    'mergermarket.com', 'mindspring.com', 'montaportal.nl', 'msn.com',
    'msu.edu', 'naver.com', 'nc.rr.com', 'netscape.net', 'ntlworld.com',
    'optonline.net', 'optusnet.com.au', 'orange.fr', 'ou.edu',
    'outlook.com', 'outlook.com.au', 'ozemail.com.au', 'pacbell.net',
    'paisabazaar.com', 'pegipegi.com', 'prodigy.net', 'ptd.net', 'pwc.com',
    'q.com', 'qiniu.com', 'qq.com', 'rambler.ru', 'rev.com',
    'roadrunner.com', 'rocketmail.com', 'rogers.com', 'rothschild.com',
    'royallepage.ca', 'sasktel.net', 'savaari.com', 'sbcglobal.net',
    'seznam.cz', 'sfr.fr', 'shaw.ca', 'sky.com', 'skynet.be',
    'springspa.com', 'stanford.edu', 'student.sbccd.edu', 'suddenlink.net',
    'swbell.net', 'sympatico.ca', 't-online.de', 'tampabay.rr.com',
    'telenet.be', 'telia.com', 'telus.net', 'terra.com.br', 'tpg.com.au',
    'twc.com', 'umich.edu', 'umn.edu', 'uol.com.br', 'usc.edu',
    'utexas.edu', 'uw.edu', 'vepl.com', 'verizon.net', 'videotron.ca',
    'vt.edu', 'wanadoo.fr', 'web.de', 'westnet.com.au', 'wi.rr.com',
    'windstream.net', 'wp.pl', 'xtra.co.nz', 'y7mail.com', 'yahoo.ca',
    'yahoo.co.id', 'yahoo.co.in', 'yahoo.co.jp', 'yahoo.co.nz',
    'yahoo.co.uk', 'yahoo.com', 'yahoo.com.ar', 'yahoo.com.au',
    'yahoo.com.br', 'yahoo.com.hk', 'yahoo.com.mx', 'yahoo.com.sg',
    'yahoo.com.tw', 'yahoo.de', 'yahoo.es', 'yahoo.fr', 'yahoo.it',
    'yandex.ru', 'ymail.com']
LOOKUP_TABLE = {u'yahoo': u'yahoo.com', u'gmail': u'gmail.com', u'hotmail':
    u'hotmail.com', u'live': u'live.com', u'outlook': u'outlook.com',
    u'msn': u'msn.com', u'googlemail': u'googlemail.com', u'aol':
    u'aol.com', u'aim': u'aim.com', u'icloud': u'icloud.com', u'me':
    u'me.com', u'mac': u'mac.com', u'facebook': u'facebook.com', u'comcast':
    u'comcast.net', u'sbcglobal': u'sbcglobal.net', u'bellsouth':
    u'bellsouth.net', u'verizon': u'verizon.net', u'earthlink':
    u'earthlink.net', u'cox': u'cox.net', u'charter': u'charter.net',
    u'shaw': u'shaw.ca', u'bell': u'bell.net'}

<mask token>
import difflib


def suggest(word, cutoff=0.77):
    """
    Given a domain and a cutoff heuristic, suggest an alternative or return the
    original domain if no suggestion exists.
    """
    if word in LOOKUP_TABLE:
        return LOOKUP_TABLE[word]
    guess = difflib.get_close_matches(word, MOST_COMMON_DOMAINS, n=1,
        cutoff=cutoff)
    if guess and len(guess) > 0:
        return guess[0]
    return word


MOST_COMMON_DOMAINS = ['mailgun.net', '126.com', '163.com',
    'account.tradeshift.com', 'aim.com', 'airwallex.com', 'alice.it',
    'ameritech.net', 'anz.com', 'aol.com', 'apple.com', 'asu.edu',
    'att.net', 'bain.com', 'bell.net', 'bellsouth.net', 'berkeley.edu',
    'bigpond.com', 'bigpond.com.au', 'bigpond.net.au', 'bk.ru',
    'bluewin.ch', 'bol.com.br', 'btinternet.com', 'centurylink.net',
    'cfl.rr.com', 'charter.com', 'charter.net', 'citi.com', 'colemanrg.com',
    'columbia.edu', 'comcast.net', 'compass.com', 'cornell.edu', 'cox.net',
    'cpp.edu', 'cytonn.com', 'deloitte.com', 'det.nsw.edu.au',
    'docomo.ne.jp', 'earthlink.net', 'edumail.vic.gov.au', 'eim.ae',
    'email.arizona.edu', 'embarqmail.com', 'emirates.net.ae', 'excite.com',
    'exploretrip.com', 'ext.uber.com', 'ezweb.ne.jp', 'free.fr',
    'freenet.de', 'frontier.com', 'frontiernet.net', 'fuse.net',
    'g.austincc.edu', 'ge.com', 'gmail.com', 'gmx.at', 'gmx.com', 'gmx.de',
    'gmx.net', 'google.com', 'googlemail.com', 'gs.com',
    'guest.booking.com', 'hanmail.net', 'hotmail.ca', 'hotmail.co.jp',
    'hotmail.co.nz', 'hotmail.co.uk', 'hotmail.com', 'hotmail.com.au',
    'hotmail.de', 'hotmail.es', 'hotmail.fr', 'hotmail.it', 'i.softbank.jp',
    'icloud.com', 'iinet.net.au', 'inbox.ru', 'indeedemail.com',
    'internationalsos.com', 'internode.on.net', 'iprimus.com.au', 'jhu.edu',
    'jtbap.com', 'juno.com', 'kw.com', 'laposte.net', 'libero.it',
    'limetray.com', 'list.ru', 'live.ca', 'live.co.uk', 'live.com',
    'live.com.au', 'live.fr', 'live.nl', 'lynk.co.in', 'mac.com',
    'mail.com', 'mail.ru', 'marketplace.amazon.com', 'marriott.com',
    'mavs.uta.edu', 'mchsi.com', 'mckinsey.com', 'me.com',
    'mergermarket.com', 'mindspring.com', 'montaportal.nl', 'msn.com',
    'msu.edu', 'naver.com', 'nc.rr.com', 'netscape.net', 'ntlworld.com',
    'optonline.net', 'optusnet.com.au', 'orange.fr', 'ou.edu',
    'outlook.com', 'outlook.com.au', 'ozemail.com.au', 'pacbell.net',
    'paisabazaar.com', 'pegipegi.com', 'prodigy.net', 'ptd.net', 'pwc.com',
    'q.com', 'qiniu.com', 'qq.com', 'rambler.ru', 'rev.com',
    'roadrunner.com', 'rocketmail.com', 'rogers.com', 'rothschild.com',
    'royallepage.ca', 'sasktel.net', 'savaari.com', 'sbcglobal.net',
    'seznam.cz', 'sfr.fr', 'shaw.ca', 'sky.com', 'skynet.be',
    'springspa.com', 'stanford.edu', 'student.sbccd.edu', 'suddenlink.net',
    'swbell.net', 'sympatico.ca', 't-online.de', 'tampabay.rr.com',
    'telenet.be', 'telia.com', 'telus.net', 'terra.com.br', 'tpg.com.au',
    'twc.com', 'umich.edu', 'umn.edu', 'uol.com.br', 'usc.edu',
    'utexas.edu', 'uw.edu', 'vepl.com', 'verizon.net', 'videotron.ca',
    'vt.edu', 'wanadoo.fr', 'web.de', 'westnet.com.au', 'wi.rr.com',
    'windstream.net', 'wp.pl', 'xtra.co.nz', 'y7mail.com', 'yahoo.ca',
    'yahoo.co.id', 'yahoo.co.in', 'yahoo.co.jp', 'yahoo.co.nz',
    'yahoo.co.uk', 'yahoo.com', 'yahoo.com.ar', 'yahoo.com.au',
    'yahoo.com.br', 'yahoo.com.hk', 'yahoo.com.mx', 'yahoo.com.sg',
    'yahoo.com.tw', 'yahoo.de', 'yahoo.es', 'yahoo.fr', 'yahoo.it',
    'yandex.ru', 'ymail.com']
LOOKUP_TABLE = {u'yahoo': u'yahoo.com', u'gmail': u'gmail.com', u'hotmail':
    u'hotmail.com', u'live': u'live.com', u'outlook': u'outlook.com',
    u'msn': u'msn.com', u'googlemail': u'googlemail.com', u'aol':
    u'aol.com', u'aim': u'aim.com', u'icloud': u'icloud.com', u'me':
    u'me.com', u'mac': u'mac.com', u'facebook': u'facebook.com', u'comcast':
    u'comcast.net', u'sbcglobal': u'sbcglobal.net', u'bellsouth':
    u'bellsouth.net', u'verizon': u'verizon.net', u'earthlink':
    u'earthlink.net', u'cox': u'cox.net', u'charter': u'charter.net',
    u'shaw': u'shaw.ca', u'bell': u'bell.net'}

# coding:utf-8
"""
Spelling corrector library, used to correct common typos in domains like
gmal.com instead of gmail.com.

The spelling corrector uses difflib which in turn uses the
Ratcliff-Obershelp algorithm [1] to compute the similarity of two strings.
This is a very fast an accurate algorithm for domain spelling correction.

The (only) public method this module has is suggest(word), which given
a domain, suggests an alternative or returns the original domain
if no suggestion exists.

[1] http://xlinux.nist.gov/dads/HTML/ratcliffObershelp.html
"""

import difflib


def suggest(word, cutoff=0.77):
    """
    Given a domain and a cutoff heuristic, suggest an alternative or return the
    original domain if no suggestion exists.
    """
    if word in LOOKUP_TABLE:
        return LOOKUP_TABLE[word]

    guess = difflib.get_close_matches(word, MOST_COMMON_DOMAINS, n=1, cutoff=cutoff)
    if guess and len(guess) > 0:
        return guess[0]
    return word

MOST_COMMON_DOMAINS = [
    # mailgun :)
    'mailgun.net',
    # The Top 200 domains from 30mm open events gathered during the
    # last 30 days prior to 8/22/2018
    '126.com',
    '163.com',
    'account.tradeshift.com',
    'aim.com',
    'airwallex.com',
    'alice.it',
    'ameritech.net',
    'anz.com',
    'aol.com',
    'apple.com',
    'asu.edu',
    'att.net',
    'bain.com',
    'bell.net',
    'bellsouth.net',
    'berkeley.edu',
    'bigpond.com',
    'bigpond.com.au',
    'bigpond.net.au',
    'bk.ru',
    'bluewin.ch',
    'bol.com.br',
    'btinternet.com',
    'centurylink.net',
    'cfl.rr.com',
    'charter.com',
    'charter.net',
    'citi.com',
    'colemanrg.com',
    'columbia.edu',
    'comcast.net',
    'compass.com',
    'cornell.edu',
    'cox.net',
    'cpp.edu',
    'cytonn.com',
    'deloitte.com',
    'det.nsw.edu.au',
    'docomo.ne.jp',
    'earthlink.net',
    'edumail.vic.gov.au',
    'eim.ae',
    'email.arizona.edu',
    'embarqmail.com',
    'emirates.net.ae',
    'excite.com',
    'exploretrip.com',
    'ext.uber.com',
    'ezweb.ne.jp',
    'free.fr',
    'freenet.de',
    'frontier.com',
    'frontiernet.net',
    'fuse.net',
    'g.austincc.edu',
    'ge.com',
    'gmail.com',
    'gmx.at',
    'gmx.com',
    'gmx.de',
    'gmx.net',
    'google.com',
    'googlemail.com',
    'gs.com',
    'guest.booking.com',
    'hanmail.net',
    'hotmail.ca',
    'hotmail.co.jp',
    'hotmail.co.nz',
    'hotmail.co.uk',
    'hotmail.com',
    'hotmail.com.au',
    'hotmail.de',
    'hotmail.es',
    'hotmail.fr',
    'hotmail.it',
    'i.softbank.jp',
    'icloud.com',
    'iinet.net.au',
    'inbox.ru',
    'indeedemail.com',
    'internationalsos.com',
    'internode.on.net',
    'iprimus.com.au',
    'jhu.edu',
    'jtbap.com',
    'juno.com',
    'kw.com',
    'laposte.net',
    'libero.it',
    'limetray.com',
    'list.ru',
    'live.ca',
    'live.co.uk',
    'live.com',
    'live.com.au',
    'live.fr',
    'live.nl',
    'lynk.co.in',
    'mac.com',
    'mail.com',
    'mail.ru',
    'marketplace.amazon.com',
    'marriott.com',
    'mavs.uta.edu',
    'mchsi.com',
    'mckinsey.com',
    'me.com',
    'mergermarket.com',
    'mindspring.com',
    'montaportal.nl',
    'msn.com',
    'msu.edu',
    'naver.com',
    'nc.rr.com',
    'netscape.net',
    'ntlworld.com',
    'optonline.net',
    'optusnet.com.au',
    'orange.fr',
    'ou.edu',
    'outlook.com',
    'outlook.com.au',
    'ozemail.com.au',
    'pacbell.net',
    'paisabazaar.com',
    'pegipegi.com',
    'prodigy.net',
    'ptd.net',
    'pwc.com',
    'q.com',
    'qiniu.com',
    'qq.com',
    'rambler.ru',
    'rev.com',
    'roadrunner.com',
    'rocketmail.com',
    'rogers.com',
    'rothschild.com',
    'royallepage.ca',
    'sasktel.net',
    'savaari.com',
    'sbcglobal.net',
    'seznam.cz',
    'sfr.fr',
    'shaw.ca',
    'sky.com',
    'skynet.be',
    'springspa.com',
    'stanford.edu',
    'student.sbccd.edu',
    'suddenlink.net',
    'swbell.net',
    'sympatico.ca',
    't-online.de',
    'tampabay.rr.com',
    'telenet.be',
    'telia.com',
    'telus.net',
    'terra.com.br',
    'tpg.com.au',
    'twc.com',
    'umich.edu',
    'umn.edu',
    'uol.com.br',
    'usc.edu',
    'utexas.edu',
    'uw.edu',
    'vepl.com',
    'verizon.net',
    'videotron.ca',
    'vt.edu',
    'wanadoo.fr',
    'web.de',
    'westnet.com.au',
    'wi.rr.com',
    'windstream.net',
    'wp.pl',
    'xtra.co.nz',
    'y7mail.com',
    'yahoo.ca',
    'yahoo.co.id',
    'yahoo.co.in',
    'yahoo.co.jp',
    'yahoo.co.nz',
    'yahoo.co.uk',
    'yahoo.com',
    'yahoo.com.ar',
    'yahoo.com.au',
    'yahoo.com.br',
    'yahoo.com.hk',
    'yahoo.com.mx',
    'yahoo.com.sg',
    'yahoo.com.tw',
    'yahoo.de',
    'yahoo.es',
    'yahoo.fr',
    'yahoo.it',
    'yandex.ru',
    'ymail.com'
]

# domains that the corrector doesn't fix that we should fix
LOOKUP_TABLE = {
    u'yahoo':       u'yahoo.com',
    u'gmail':       u'gmail.com',
    u'hotmail':     u'hotmail.com',
    u'live':        u'live.com',
    u'outlook':     u'outlook.com',
    u'msn':         u'msn.com',
    u'googlemail':  u'googlemail.com',
    u'aol':         u'aol.com',
    u'aim':         u'aim.com',
    u'icloud':      u'icloud.com',
    u'me':          u'me.com',
    u'mac':         u'mac.com',
    u'facebook':    u'facebook.com',
    u'comcast':     u'comcast.net',
    u'sbcglobal':   u'sbcglobal.net',
    u'bellsouth':   u'bellsouth.net',
    u'verizon':     u'verizon.net',
    u'earthlink':   u'earthlink.net',
    u'cox':         u'cox.net',
    u'charter':     u'charter.net',
    u'shaw':        u'shaw.ca',
    u'bell':        u'bell.net'
}
