def unpack_policy (name):
    """ Returns a list of flags for invoking `policyfilt.py` based on a policy name.

    Args:
        name (str): The policy name.
    Return:
        list of str: The list of flags.
    """
    return list(map(str, {
        'basic7': ['-n', 7],
        'basic8': ['-n', 8],
        'basic9': ['-n', 9],
        'basic10': ['-n', 10],
        'basic12': ['-n', 12],
        'basic14': ['-n', 14],
        'basic16': ['-n', 16],
        'basic20': ['-n', 20],
        'digit7': ['-n', 7, '-d', 1],
        'digit8': ['-n', 8, '-d', 1],
        'digit9': ['-n', 9, '-d', 1],
        'digit10': ['-n', 10, '-d', 1],
        'upper7': ['-n', 7, '-u', 1],
        'upper8': ['-n', 8, '-u', 1],
        'upper9': ['-n', 9, '-u', 1],
        'upper10': ['-n', 10, '-u', 1],
        'symbol7': ['-n', 7, '-s', 1],
        'symbol8': ['-n', 8, '-s', 1],
        'symbol9': ['-n', 9, '-s', 1],
        'symbol10': ['-n', 10, '-s', 1],
        '2word12': ['-n', 12, '-w', 2],
        '2word16': ['-n', 16, '-w', 2],
        '2class12': ['-n', 12, '-c', 2],
        '2class16': ['-n', 16, '-c', 2],
        '3class12': ['-n', 12, '-c', 3],
        '3class16': ['-n', 16, '-c', 3],
        'dictionary8': ['-n', 8, '-dict', './dict/openwall-tiny.dict'],
        'comp8': ['-n', 8, '-c', 4, '-dict', './dict/openwall-tiny.dict'],
        # NOTE: Add to this list for custom policies if required.
    }[name]))