The domain of the function is all words, as it doesn't seem to matter what input is given. The rule applies to all inputs, and there doesn't seem to be any part of the domain where the rule does not hold.