automatically convert sample to correct language