Text this: Large Deviations Techniques and Applications