Text this: A Function-Level Fault Injection and Machine Learning Framework for Reliability Analysis