fac24 / alis-learning

A learning app for dyslexic children
https://alislearning.netlify.app/
3 stars 1 forks source link

Create phoneme-data.js file for the game context #65

Closed mariaalouisaa closed 2 years ago

mariaalouisaa commented 2 years ago

Something like what we discussed in Design Week - but may have some changes!

const phoneme_game = {
    // A very simple way to encode game clue/answer/choice data:
    1: {
        answer: ['c', 'a', 't'],
        clue: ['', 'a', 't'], // Empty elements in the array indicate missing grapheme
        grapheme_choices: ['c', 'f', 'm'], // These choices should be informed by experts?
        stars: 1, // Easier rounds earn fewer stars
         // Do we want an image for each word?
    },
    // We can encode graphemes that have more than one letter:
    2: {
        answer: ['ch', 'a', 't'],
        clue: ['', 'a', 't'],
        grapheme_choices: ['c', 'ch', 'm'],
        stars: 2, // Harder rounds earn more stars
    },

    // A "very hard" round like this can't be adequately encoded by our simple approach:
    3: {
        answer: ['ch', 'e', 'f'],
        clue: ['', 'e', 'f'],
        // Because the strings 'ch' and 'ch' are the same!
        grapheme_choices: ['ch', 's', 'ch'],
    },
    // Do we want to encode phonemes in our data?! Probably not, it's a lot more work!
    // (We'd need another data store linking phonemes to graphemes?)
    4: {
        answer: ['/sh/', '/e/', '/f/'],
        clue: ['', 'e', 'f'],
        grapheme_choices: ['/k/', '/s/', '/sh/'],
    },
}