Why not prolog or one of the other logic languages? It's really old, should be lots of good training data for it and the declarative nature would seem to be a great fit for llms.
Most Prolog code on the Web is complete garbage.
Most Prolog code on the Web is complete garbage.