A tunable laser spectroscopic carpet identification system comprises a
tunable laser spectroscopy system for generating a tunable signal that is
transmitted to a carpet sample. The system detects the tunable signal
after interaction with the carpet sample so that an analyzer is able to
relate a spectral response of the carpet sample to a chemical composition
of the carpet sample. In one example, the spectroscopy system comprises a
laser cavity in which the tunable signal is generated, a semiconductor
gain medium in the laser cavity, and a tunable element for controlling a
wavelength of tunable signal generated in the laser cavity. To deal with
variations in water content, the analyzer estimates a water content of
the carpet sample using the spectral response of the carpet sample and
then determines the chemical composition of the carpet sample in part
based on the estimate of the water content.