Parts of Speech for Only
on·ly
O o Gramatical Hierarchy
Grammatically "Only" is a adverb, to be more precise even a connector. But also it is used as a adjective, specifically a connector. Part of speech depends on meaning of this word.
All about only Download all about only in pdf