The function applies to any noun or proper noun, but may not hold for words with multiple meanings or that are not easily categorizable.