Chemical enrichment and accretion of nitrogen-loud quasars