An approach for in situ qualitative and quantitative analysis of moisture adsorption in nanogram-scaled lignin by using micro-FTIR spectroscopy and partial least squares regression.