Add API doc to rule predicates