sembles languages function