Imported from https://github.com/robin-chan/decision-rules