[logic-ml] from word to sentence