add sentence translation function