How to know what part of speech is "there" in some cases? [closed]

If you would just look in the dictionary........ [link]

adverb

  1. in or at that place (opposed to here ): She is there now.
  2. at that point in an action, speech, etc.: He stopped there for applause.
  3. in that matter, particular, or respect: His anger was justified there.
  4. into or to that place; thither: We went there last year.
  5. (used by way of calling attention to something or someone): There they go.
  6. in or at that place where you are: Well, hi there.