Text this: Inferring stellar compositions