Compositionality
Compositionality is a principle in semantics and formal linguistics stating that the meaning of a complex expression is determined by the meanings of its parts and the way those parts are syntactically combined. It is closely associated with the idea that meanings are built up from smaller pieces in a systematic way, so that knowing the parts and the structure suffices to determine the whole.
In linguistics, compositionality underpins many formal theories of meaning, such as Montague semantics and categorial grammar.
In computer science, compositionality guides the design of programming language semantics. Denotational and operational approaches seek
Limitations and challenges include idioms, context-dependent expressions, and certain use-theory phenomena where literal compositional analysis fails.