Those words are used to give a direction right?-- Probably. It would be easier to evaluate if you included within the message box all text to be considered
I think they are usually Adjective and Adverb.-- Most are usually prepositions.
But I heard I can make them nouns by adding "The" before them.-- Yes, in at least some cases.