changed name_contains_rule to name_rule (now it takes relations like (is), (contains) as constructor param)