import re


def guess_type_from_name(name):
    """Make an educated guess about the type of a variable based on common naming conventions.

    Arguments:
        name {str} -- variable name

    Returns:
        {str} -- string of the builtin type or None if one cannot be found
    """
    if re.match("(?:is|has)[A-Z_]", name):
        return 'bool'

    if re.match("^(?:cb|callback|done|next|fn)$", name):
        return 'function'

    return None