Hello friends,
I have a little educational app where random, mix-n-match sentences are generated for students to practice reading.
Here is the C3 file.
The app creates sentences that include pronouns, and I want to implement a system where for the male names the pronouns are changed on the fly.
The file above is a stripped-down version for the forum here. In the real implementation it has many names.
A typical example is:
Susan is happy because it's her birthday
...needs to become
Peter is happy because it's his birthday
...when a male name is invoked
If you open the project file it should be immediately clear how it's set up (it's very simple) and what the goal is. The sentence fragments that include the gender specific pronouns - I only want to write those once in one gender. I want the coding to handle changing the pronouns according to what name is being invoked.
I have spent quite a bit of time trying to figure it out, but I'm just not that advanced. I think an array would probably be best - one column for female names and one for male, and then you'd just say if the name came from this or that column, change all "she" to "he" etc., but I can't get that working. Is it the 'len'? If it's an array with two names columns, it needs to still draw randomly from both columns to maintain the current functionality. The other approach it seems would be a condition where I just list all the male names and the system checks against the list each time.
Thanks very much for any assistance. I greatly appreciate it!