import random


def get_word() -> str:
    """Get a random word from data.txt

    Returns:
        str: Selected word to guess in the game.
    """
    with open("./data.txt", "r", encoding="utf-8") as f:
        words = [line.strip().lower() for line in f]

    word = random.choice(words)
    return word