Does a dictionary determine the part of speech of a word?

A dictionary can show a word's part of speech, but it does not determine it. How a word is used in a sentence determines its part of speech.