The rational basis for the development of a legal expert system