Thank you. Obviously the person’s behaviour was unreasonable and you should not have been subjected to this – it could amount to bullying. You have the right to complain about their behaviour to your employer, such as by raising a formal grievance.
The main issue here however is the fact you have been employed at your place of work for less than 2 years, which means your employment rights will unfortunately be somewhat limited. Most importantly, you will not be protected against unfair dismissal. This means that your employer can dismiss you for more or less any reason, and without following a fair procedure, as long as their decision is not based on discriminatory grounds (i.e. because of gender, race, religion, age, a disability, sexual orientation, etc.) or because you were trying to assert any of your statutory rights (e.g. requesting maternity/paternity leave, etc.).
This means that even if you were bullied or provoked into swearing, you may still be dismissed without being able to challenge it. I agree that it appears unfair but the law is very clear on employees with less than 2 years’ service and even if you are completely innocent and the victim of obvious bullying, you could still be legally dismissed just because you have less than 2 years’ service and are not protected against unfair dismissal.
I would hope it does not result in a dismissal but at least you know where you stand should it get that far.
I'm sorry if this is not necessarily the answer you were hoping for, however I do have a duty to be honest and explain the law as it actually stands. This does mean delivering bad news from time to time. I hope you understand and would be happy to provide any further clarification if needed. If you are still satisfied with the level of service you have received I would be grateful if you could please take a second to leave a positive rating by selecting 3, 4 or 5 starts at the top of the page. Thank you