Sentences as systems. The principle of compositionality and its limits