import json


def load_words_JSON(filepath: str) -> list[str]:
    """
    get word list from a given filepath.
    :param filepath: path to a JSON file
    :return: list of words.
    """
    with open(filepath, encoding='utf-8') as f:
        data = json.load(f)
    return data['words']