A search in iWeb for the part of speech of ‘long’:
1 LONG (JJ) 3552089 adjective
2 LONG (RR) 1695369 adverb
5 LONG (CS32) 727692 B2 complex subordinating conjunction:
He says he‘s waited as long as he can for Batman to do the right thing.
6 LONG (RR22) 93610 C1 complex adverbial phrase ‘for long’
But if it went wrong, I would not want to live like that for long.
9 LONG (VVI) 48001 verb
14 LONG (RR32) 7934