"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
Michael Hinze

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. 

This discussion is closed. You can start a new discussion or contact Articulate Support.