Here's why:
* Author's is a possessive noun modifying the noun "purpose".
* Purpose is the main noun in the phrase, representing the reason or goal behind a piece of writing.
Therefore, the entire phrase functions as a noun, representing the reason or intention behind the author's writing.