Appling stem algorithm