def what_capital(w):
    """
    Receives a word and returns its capitalization. If it's numerical,
    returns a "contains_digit" flag.

    Parameters:
    -----------
    w : str
        Token
    
    Returns:
    --------
    str
        Flag
    """

    if ( True in [c.isdigit() for c in w] and not w.isdigit() ): 
        return 'contains_numeric'

    elif w.isupper(): 
        return 'all_upper'

    elif w.islower(): 
        return 'all_lower'

    elif w.istitle(): 
        return 'initial_upper'

    elif w.isdigit(): 
        return 'numeric'

    else: 
        return 'other'