Text this: Metric-based defect prediction from class diagram