import re


def is_nice_word(word: str) -> bool:
    """
    Check if a word is nice by part 1's definition.
    """
    return all(
        (
            re.search(r".*([aeiou].*){3}", word),
            re.search(r"(.)\1", word),
            not re.search(r"(ab|cd|pq|xy)", word),
        )
    )