Hi Mothman, I’ve experimented a little with AI.
I think it knows that a crossword clue will generally contain a definition either at the beginning or the end of the clue so will look for this.
However, beyond basic anagrams or perhaps hiddens it can’t handle the sort of wordplay construction that we all deal with on a daily basis.
Long may that last!