I'd like to be able to give a question prompt and allow the respondent to provide sentences or even paragraphs of an answer, but score certain words with certain values attached. For example, if someone uses the word "global" in their answer, I'd like to give them two points. If they also use the phrase "open-minded" I'd like to give them three points. I don't want to give any points for words like "the", "and", etc. Does anyone know how to do this? Currently, the only way I can score words is to have a single-word answer and it must match the "right answer" exactly to get credit.
Page 1 / 1
You can do this with JavaScript or a web service. Basically, you'll parse the paragraph into an array of individual words, then loop through the words and add up a score. You'll then set an embedded variable to equal the score.
Leave a Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.