- Issue created by @ob3ron
- 🇨🇦Canada ob3ron Canada
WIP plugin, still has issues with answer form submit. Does not save data and goes to previous question instead of next.
- 🇵🇱Poland Graber
Just one thing before this can be merged: please use global namespace indicator before every global function call:
\ array_key_exists (...
.
In general this has a lot of potential for improvements, for example:- Provide a field with number of phrases required to score max (currently only answer with all phrases allows to score max).
- Provide phrase variants so any of the variants will count as a phrase found (phrases setting textarea: each row is a phrase and variants separated by a pipe).
- Allow 1 or 2 letter difference when searching with feedback like "phrase found but you have a typo".
Let's leave all those things as follow-ups though, fix the global namespace prefix and merge for now.
- 🇨🇦Canada ob3ron Canada
I've added global namespace indicators before every global function call -- I think I got 'em all!
field with number of phrases required to score max
I'm not sure if I understand the usefulness of this, to my mind a teacher would only add the match-phrases that they wanted to see in the student answer, so if they get all of them they get 100% score. But maybe you're seeing a use case that I'm missing where this would be needed?
phrase variants so any of the variants will count as a phrase found (phrases setting textarea: each row is a phrase and variants separated by a pipe)
Excellent idea! Already included in the plugin from the beginning. 😁
Allow 1 or 2 letter difference when searching with feedback like "phrase found but you have a typo"
I would LOVE to add this feature, but couldn't find a way to do it that isn't super resource-intensive. Can you suggest a method?
- 🇵🇱Poland Graber
Looks good! as for incomplete string matching - this probably needs a dedicated method that'd iterate over the string checking character by character, if we have a match we check the next character etc. It's not going to be very heavy, just writing it may be challenging. One day maybe.
Automatically closed - issue fixed for 2 weeks with no activity.