Identifies same or opposite groups within the pattern and returns a binding of that as output