Text this: Applying the Free-Energy Principle to Complex Adaptive Systems