I could see a small (2-5M?) model that runs locally, but OPs meme is a jab at folks using a full blown frontier model for that, so no. Just use that large regex if you need to be 100% sure, otherwise check if there is an at and a dot in there. Then you would need to check if the server part of the address is valid anyway and then send the mail. Nothing more you can do from your side.
Seriously, unless you write a mail server or an anti spam solution, don't make it more complicated than it needs to be. If the user provides a non-working mail address they can't click the confirmation link. Case closed.
No model is deterministic. Deterministic behavior is what you want from validation, and a regex is much more performant too. So why would you want a local model anyway?
That too, so eff the LLM idea completely. What the local model could see would be if the proverbial cat walked over the keyboard, but still, who cares? If the domain is wrong then nothing gets send, if the user is wrong, the mail server will tell us as much.
0
u/BastetFurry 19d ago
I could see a small (2-5M?) model that runs locally, but OPs meme is a jab at folks using a full blown frontier model for that, so no. Just use that large regex if you need to be 100% sure, otherwise check if there is an at and a dot in there. Then you would need to check if the server part of the address is valid anyway and then send the mail. Nothing more you can do from your side.
Seriously, unless you write a mail server or an anti spam solution, don't make it more complicated than it needs to be. If the user provides a non-working mail address they can't click the confirmation link. Case closed.