Text this: Algorithm for Designing Professional Retraining Programs Based on a Competency Approach