ANSWER:
Chatting and texting the opposite gender is sinful and it reduces the reward of fasting. It defies the purpose of fasting as the Prophet salla Allahu Alaihi wa Sallam had said: whoever doesn’t abandon falsehood, acting upon it and ignorance, Allah has no need for him to leave food and drink!