Text this: Cooperative Behavior Rule Acquisition for Multi-Agent Systems by Machine Learning