Computationally Recognizing Wordplay in Jokes

words with different spelling but the same pronunciation, and with two words with different spelling and similar pronunciation. For example, in Joke1 the conflict is created because the word has two meanings, while the pronun-ciation and the spelling stay the same. In Joke2 the wordplay is between words that sound nearly alike. ................
................