Debug infer_word