A Rule-based Approach to Syntactic and Semantic Composition of BOMs