Natural language syntax complies with the free-energy principle