Text this: Relative information spectra with applications to statistical inference