The function f(x) is selective for racket sports, assigning high values to words associated with racket sports such as tennis, badminton, squash, and table tennis.