* Noun: When it refers to a distinctive attribute or characteristic, especially one that is desirable.
* Example: "The quality of the fabric is excellent."
* Adjective: When it describes something as being of high standard or excellence.
* Example: "This is a quality product."
* Pronoun: In some cases, it can act as a pronoun replacing a noun phrase referring to quality.
* Example: "The quality is evident in every detail."
So, without context, it's impossible to definitively say what part of speech "quality" is. You need to look at how it's used in the sentence to determine its function.