The function f(x) applies the rule of extracting the last word from a sentence.
