The humorous 1980 book titled Squad Helps Dog Bite Victim and Other Flubs from teh Nation's Press (AbeBooks, Goodreads)1 recently came to mind after seeing the headline
Shocking video shows Chinese robot attack dog with machine gun dropped by drone
which I honestly read as the robot attacking the poor dog, and was perplexed because I could not figure out if the robot attacked the dog because it had a machine gun, or that it attacked the dog using a machine gun. Alas, "attack dog" is the object, dropped is the verb and drone is the subject.
I think it's just a coincidence that "dog bite" and "attack dog" are both related to canines.
Question: Is there a term for sentences that are hopelessly and often humorously ambiguous like these and others? Has it been approached algorithmically - is there the possibility of a simple rules-based "ambiguous headline generator"?
1squad, helps, dog bite victim were likely the intended subject verb and object respectively, but it is easy to see it as the squad helping the dog as it endeavors to bite the victim.