A word that describes how two words relate to each other in a sentence is

an adjective.
an adverb.
a preposition.
a pronoun.