Welcome to the thirty-eighth of Altitude Foundation’s #MicroChallenges2020
Today’s challenge will let you explore how your phone predicts your texts
What’s a Micro Challenge?
These challenges are short activities to help you develop, revise or refresh your coding skills, posted every Monday, Wednesday and Friday.
Micro Challenge #38
Most of us use our phones every day to communicate, which means we are very used to using predictive text. But how does predictive text work? This video provides more of an in-depth explanation, but in basic terms: predictive text combines a library of common phrases and words (i.e. it has been programmed to know which words are generally used most frequently, as well as having grammatical structures programmed in) and machine learning, which allows the programme to store the commonly used phrases and words of the individual user. So, for example, if you are often texting about football, your predictive text programme will store and predict the relevant words, like pitch and match, whereas if you are often texting about movies, it might store cinema and Netflix.
For today’s challenge, can you think like a predictive text programme? Using your texts/Snapchats/WhatsApp/other messaging apps from the last day, can you provide three predictions for what might follow these three phrases in your phone?
If you don’t have a phone to hand, try saying the starter phrase and write down the words that pop into your head.
|Starter phrase||Option 1||Option 2||Option 3|
(If these aren’t phrases you use frequently, feel free to substitute your own!)
- Could you compare with a friend or family member – do they get the same options as you?
- Looking at your predictive text on the phone, where do you think the most commonly used words are positioned in the list of suggestions? Why do you think that is?
- What would the pseudocode or algorithm look like for predictive text?
We would love to see what you have created! Please send any pictures, videos, or files of your activities to us – either via Facebook, Twitter or Instagram using #MicroChallenges2020 or to firstname.lastname@example.org. If you are emailing them to us, please let us know if you are happy for us to share your stuff on our social media platforms (with credit, of course).
Sign-up here to receive a weekly email with Micro Challenges top tips and solutions: