Text this: A principled framework and technique for rule extraction from multi-layer perceptrons