from typing import Union


def is_palindrome(word: str) -> Union[bool, str]:
    """Function to check if word is a palindrome
    >>> from snakypy.helpers.checking import is_palindrome
    >>> is_palindrome("ana")
    True
    >>> from snakypy.helpers.checking import is_palindrome
    >>> is_palindrome("banana")
    False

    Args:
        word (str): Must receive a string

    Returns:
        [bool]: Return True if it is a palindrome, and False if it is not a palindrome.
    """
    try:

        # We make a slicing by traversing the word of the "word" parameter, backwards.
        slicing_reverse: str = word[::-1]

        # If the original word (parameter) is equal to the word traversed backwards,
        # then the return will be True
        if word == slicing_reverse:
            return True

        # If they are not identical it will always return False; which is not palindrome.
        return False

    except TypeError as err:
        return f"The parameter must be a string: {err}"