It's called an interjection:
http://grammar.ccc.commnet.edu/grammar/interjections.htm
What grammar is the "Yes" in this senence:
Yes, we can go to the store, but Bobby will need to stay home.
3 answers
im pretty sure its NOT an interjection
Then what do YOU think it is?