The function f(x) appears to work correctly for a wide range of words, including proper nouns, common nouns, concrete objects, abstract