

def is_alpha_number(number):
    'Checks if the number is a valid vanity (alpha) number such as 800\n    MICROSOFT. A valid vanity number will start with at least 3 digits and\n    will have three or more alpha characters. This does not do region-specific\n    checks - to work out if this number is actually valid for a region, it\n    should be parsed and methods such as is_possible_number_with_reason() and\n    is_valid_number() should be used.\n\n    Arguments:\n    number -- the number that needs to be checked\n\n    Returns True if the number is a valid vanity number\n    '
    if (not _is_viable_phone_number(number)):
        return False
    (extension, stripped_number) = _maybe_strip_extension(number)
    return bool(fullmatch(_VALID_ALPHA_PHONE_PATTERN, stripped_number))

dataset/ETHPy150Open daviddrysdale/python-phonenumbers/python/phonenumbers/phonenumberutil.py is_alpha_number/original