The spectra of narrow-line Seyfert 1 galaxies