def get_descriptive_adjectives(tree, gender):
    """
    Returns a list of adjectives describing pronouns for the given gender in the given dependency tree.

    :param tree: dependency tree for a document, output of **generate_dependency_tree**
    :param gender: 'male' or 'female', defines which pronouns to search for
    :return: List of adjectives as strings

    """

    if gender.lower() in ['male', 'female']:
        if gender.lower() == 'male':
            pronoun = 'he'
        else:
            pronoun = 'she'
    else:
        raise ValueError(f'get_descriptive_adjectives currently only supports "male" or "female", not {gender}')

    adjectives = []

    for sentence in tree:
        for triple in sentence:
            if triple[1] == "nsubj" and triple[0][1] == "JJ":
                if triple[2][0] == pronoun:
                    adjectives.append(triple[0][0])

    return adjectives