Text this: New methods for identifying Lyman continuum leakers and reionization-epoch analogues