Rephrase learning from erlang