This ``module'', if it is such, translates a semantic structure with general or ambiguous predicates into a semantic structure with specific, unambiguous predicates. In fact, lexical disambiguation often occurs at other levels, and sometimes entirely so. For example, the ambiguity of ``types'' in ``He types.'' and ``The types '' may be resolved during syntactic processing or during part-of-speech tagging. The ambiguity of `` rob a bank '' or `` form a joint venture with a bank '' may be resolved when a domain-dependent pattern is found. The fact that such a pattern occurs resolves the ambiguity.
More generally, lexical disambiguation usually happens by constraining the interpretation by the context in which the ambiguous word occurs, perhaps together with the a priori probabilities of each of the word senses.
These rules are in many cases developed manually, although this is the area where statistical methods have perhaps contributed the most to computational linguistics, especially in part-of-speech tagging.