generalize tag inference on :name