import pkg_resources


def get_words(list_name: str):
    """
    Reads the given word list from file into a list of capitalized words
    """
    resource_package = __name__
    resource_path = "/".join(("data", f"{list_name}.txt"))
    word_list = pkg_resources.resource_string(resource_package, resource_path)
    word_list = [word.decode("UTF-8") for word in word_list.split(b"\n")]
    word_list = [w[:5].upper() for w in word_list]
    return word_list