Abstract: A computer-based system and method, and a computer readable medium comprising software, for automatically determining whether a financial transaction, such as a mortgage loan must and does comply with relevant legislation. Stored business rules determine whether the financial transaction comply with relevant legislation using phraseology used by the relevant legislation. A knowledge base stores mappings of business rules corresponding to transaction objects representing the financial transaction. An application database includes the terms of the financial transaction and other information necessary to make compliance determinations. A natural language processor generates programming code comprised of programming concepts, which implements the business rules. A rule engine executes the programming code and maps the programming concepts to functions that are associated with a transaction object representing the financial transaction.