This is actually pretty easy to do with local LLMs:
https://justine.lol/matmul/#:~:text=For%20example%2C%20let%2....
As far as I know, Gmail has a neural net which is trained by examples from people reporting spam. That is a more potent approach. If you're going to restrict the output grammar to 'true or false', why even run a giant net? You could achieve the same loss with a much smaller one.