Text this: Federated learning secrecy rate optimization for 6G intelligent reflecting surface assistance