def METHOD_NAME(number: int) -> str:
    """selects the homophone by number"""
    if number <= len(active_word_list) and number > 0:
        return active_word_list[number - 1]
    error = "homophones.py index {} is out of range (1-{})".format(
        number, len(active_word_list)
    )
    app.notify(error)
    raise error