Groucho Marx's classic joke depends on a grammatical ambiguity for its humor, for example: "Last night I shot an elephant in my pajamas.
ɡɹˈaʊtʃoʊ mˈɑːɹksᵻz klˈæsɪk dʒˈoʊk dᵻpˈɛndz ˌɔn ɐ ɡɹɐmˈæɾɪkəl ˌæmbɪɡjˈuːɪɾi fɔːɹ ɪts hjˈuːmɚ, fɔːɹ ɛɡzˈæmpəl: "lˈæst nˈaɪt aɪ ʃˈɑːt ɐn ˈɛlɪfənt ɪn maɪ pɐdʒˈɑːməz.