Machine Learning Idea – Model To Generate Programming Code From Story Text As A Way To Check Understanding?

A quick machine learning idea.

Say we want machine learning algorithms that understand something about what its doing. Then I wonder if generating code from text stories could help.

This way we have something we can measure. And check for all the types of programming bugs there is.