Thank you detection on responses to closed tickets

Currently we close a ticket and often someone replies with a simple thank you and in this scenario we do not want the ticket re-opened. We also don’t want to send out a your ticket is closed - do not reply to this email style message as it does not fit with our company voice and the client may genuinely have a follow up question that should re-open the ticket. Ideally we are looking for a clever thank you detection (AI or just automation) that detects when there is just a thanks, thank your or equivalent in the ticket response and does not re-open the ticket.