The rule applied by the function seems to remove the last three characters of each input word and add an "s" at the end.

