Limitations and Bugs
Currently there's some constraint not being comprehensively considered for leaders not being able to be discarded on the field. There exist an example of generating "Discard: Grant Poisonous to yourleader, if itself is a character on the field" on a leader card.
The source condition on the sample cards Imp Master and Hogger used in the thesis should be "if itself is a minion on the field" instead of "if itself is a character on the field", following the constraints in Chaos Cards grammar.