The function appears to apply to any word as input, but there may be some words that do not follow the expected pattern.