Parts of Speech for Underscore
un·der·score
U u Gramatical Hierarchy
Grammatically "Underscore" is a noun, to be more precise even a noun. But also it is used as a verb, specifically a noun. Part of speech depends on meaning of this word.
All about underscore Download all about underscore in pdf