Yes! That is possible. I did it with Javascript in this demo:
Using Background Audio & Music in E-Learning #442 | Articulate - Community
You'll find a link to the demo and a link to the code in that ELH Challenge post.
The Javascript works by taking the freetext entry, splitting it into individual words, and then checking whether certain key words are present. It then produces a score.
You'll likely need to adapt the code for your own purposes, but if you paste it into ChatGPT and tell it your requirements, it should be straightforward.