Definition: Collocates are a type of entity that is often used in computer science and software engineering. They represent objects or values which belong to different sets, such as classes, modules, functions, etc. In programming, collocations are used to implement modularization of code by grouping related parts together. Collocations can be either static (where the class is built from a set of other classes) or dynamic (where the class is built dynamically).