The AGN-Starburst Connection traced by the Nitrogen Abundance