* Preposition: This is the most common usage. It indicates location, time, or other relationships.
* Example: "The treasure was hidden within the old chest."
* Adverb: It can modify verbs, adjectives, or other adverbs, indicating location or inclusion.
* Example: "The cat stayed within the house."
* Adjective: Though less common, "within" can describe something that is inside or internal.
* Example: "The within of the book was filled with beautiful illustrations."
To determine the part of speech, consider the context of the sentence and how "within" is being used.