As part of the weekend challenge, we are tasked to build a creative app that makes use of sound, images, words, or play.
I opted for the words creativity option of the ideas stack to build ExcuseOMatic. It is an excuse or compliment application that makes use of primarily bags of
words to generate sentences that match the chosen option: excuse or compliment, specified by a user.
Vision and What the App Does
Some creative tools make one smile. Others make one happy by focusing strictly on the functioning of the app. The ones that draw a smile on users'
faces, could be in the form of games. An example of this is ExcuseOMatic. It is the app I built for this weekend's challenge that gives varied excuses
and tailored compliments in the form of texts.
It has a pick mode: an excuse box or a compliment, and a sentence style
assembled from a word bank of deliberately diverse words. An excuse might blame a pet for a missed deadline
whereas a compliment might compare you to a perfect role model while noting some peculiar running hobbies. Another excuse might be a raccoon protesting in the kitchen and, a
compliment being a perfectly ripe avocado. The creative output is
generative, as the assembled text is combined from fragments, rather than pulled from a hard-coded script. The word
bank has sections: subject, action, consequence for excuses, and quality, comparison, quirk for compliments, to combine into hundreds
of distinct sentence combinations with minimal repetition. You simply access the app, choose which option to go for, whether an excuse or a
compliment, and the app creates one for you.
It is lightweight and fast.
How You Built It
ExcuseOMatic utilizes a combinatorial generation style by mapping onto plain JavaScript arrays and a function for random selection of fragments.
It has modes. Each mode has a word bank, template string, and a Math.random() call, all of which serve as the engine of the application. An index.html contains
the entire
app, with game-like styling and functions in it. AWS Amplify was used to deploy the app that was built.
AWS Services Used
A free-tier service was used in the building of this application. It is as follows.
AWS Amplify. It hosts the static frontend consisting of an index.html file that has a CSS markup and JavaScript within it,
which defines the user interface of the entire application. The file was uploaded to GitHub. It was then connected to Amplify and hosted on the cloud.
The browser fetches the HTML once from Amplify.
Architecture Overview
The flow was from the browser through to AWS Amplify.
Screenshots of App
What You Learned
I learnt that combinatorial generation in apps can generate fun outputs. For instance, this creativity app, intended for humor, received some interesting text. It was the right tool for a creative task with a well-defined output.
Another lesson was the deployment simplicity. It had one file, one hosting service, which made use of the complicated toolbox in a minimal way.
Loading article