Library to process logical rules and apply outcomes based on the result of those rules