The function maps words to values between 0 and 1 based on their association with creativity, art, and entertainment.