The rule applied by the function seems to be mapping certain word inputs to specific outputs.

