converts sentences into mathematical expressions