A method of preparing a composition comprising saccharide units arranged in a molecular chain, wherein from about 1 out of every 2 to about 1 out of every 250 saccharide units comprises a carboxylic acid group e.g. oxidised cellulose, or an ester or salt thereof, the method comprising irradiating a lignocellulosic biomass with an electron beam radiation.