Both sentences are grammatically correct, but they convey slightly different nuances regarding the motivation behind the effort not to use a dialect.
1. **“You’re trying so hard not to speak your dialect to me.”**
- This implies that the person is making an effort not to use their dialect when communicating directly with you. It suggests that they are consciously altering their speech in your presence.
2. **“You’re trying so hard