import re


def first_word(text: str) -> str:
    """
        returns the first word in a given text.
    """
    text = text.replace('.', ' ').replace(',', ' ').strip()
    word_list = list(text.split())
    return word_list[0]

    # another pattern
    return re.search("([\w']+)", text).group()