Text this: Privacy-preserving federated learning framework with dynamic weight aggregation