Text this: A pulse shape analysis algorithm for HPGe detectors