"fuzzy logic" for text entry
Oct 20, 2016
I'd like to build text entry quiz questions where the question would be scored "correct" if the student's answer had any of the correct answer, rather than the precisely correct answer I enter into the correct answer fields.
So, if the question is "Why is this so important?" and the answers could be:
1) patients are older
2) patients are more complex
3) patients require more care coordination
4) patients are older and more complex
5) patients are more complex and older.....
6)patients require coordination and are more complex
7) and so on for many, many permutations.
Basically, there are too many permutations for me to fill in the answer fields.
Can I set the response logic so that if the student had any of the words above, in any order, they would be marked correct?
7 Replies
You could use Javascript to check if your text entry contains any of the keywords you identified. Check out this example here. Entering any text that contains good, great, creative, awesome, and/or interesting provides positive feedback. Any text without at least one of these keywords displays negative feedback.
That's exactly what I want.
Now, how do I write the javascript, since I'm completely lacking in that
skill.
Phil Deering
612-619-8628
Hi Philp,
Just an FYI responding via email includes your signature here and just in case your phone number was included and you're welcome to edit the post to remove the information if you wish. You could take a look at the information here in regards to the best practices for Javascript.
If you want to to get started with Javascript, here is a useful tutorial.
Is it possible to send me the Storyline file and then I could replace the
varialbes: good, great, awesome, etc. with the words that I want to check
for?
Thanks.
Phil Deering
612-619-8628
Sure, see attached the .story file.
Thanks.
Very helpful. I think I can handle that. : )
This discussion is closed. You can start a new discussion or contact Articulate Support.