Returns the closest match to the requested license.

    Arguments:
        - name (str) License to use

    Returns:
        - (str) License that most closely matches the 'name' parameter

def get_license(name):
    '''
    Returns the closest match to the requested license.

    Arguments:
        - name (str) License to use

    Returns:
        - (str) License that most closely matches the 'name' parameter
    '''

    filenames = os.listdir(cwd + licenses_loc)
    licenses = dict(zip(filenames, [-1] * len(filenames)))

    for l in licenses:
        licenses[l] = compute_distance(name, l)

    return min(licenses, key=(lambda k: licenses[k]))