A common approach to generating jokes, especially the topical one-liners you might here during a late night monologue, involves:
- Finding a news item and selecting two important words from the headline
- For each of those two words, generating a list of associated words word and ideas
- Finding unexpected commonalities between the two lists
More how to use this process from the master
Disparato helps writers with steps two and three.
The Disparato app is written in React Native and uses the Expo wrapper. The backend is written in Python using the Django framework. It's a REST API that accesses the wonderful Datamuse API to find syntactically related words. It sends and receives JSON to and from this front end.
This app was built using Expo and React Native. To run it locally, clone the repo:
cd disparato
npm install
expo start
The app is currently available on the Google Play Store! Please download it and give it a whirl. I am happy and eager to receive any constructive feedback.
-
Enter two English words you'd like to explore
-
Press 'go', and the app will show related words that those two have in common
-
If nothing shows up, or if you just want more, try 'go deeper.'
That will find common words separated by one degree.
In the 'go deeper' list, you can click on a word to see how we came up with it.
Datamuse is a very cool and interesting API and this project would be meaningless without them. Thank you very much, Datamuse.
Maximilian Schwarzmüller has a terrific, comprehensive React Native course that was indispensible in my developing and shipping this project. Thank you, Maximilian Schwarzmüller!