The function takes a word as input and applies a gender rule to it. If the word is a male name, it returns "Male". If the word is a female name, it returns "Female". If the word is not a name, it returns "undefined".

