Mark the words: allow sentence answers

jarvil's picture

Hello,

I would like to see in Mark the words -library an option to use an sentence as an answer like this;

*this could be selected as one*

so that would yiled 1 point like as one word.

Summary: 
Mark the words: allow sentence answers
Content types: 
0
0
Supporter votes Members of the Supporter Network can vote for feature requests. When the supporter network has generated sufficient funding for the top voted feature request it will normally be implemented and released. More about the H5P Supporter Network
BV52's picture

Hi jarvil,

Thank you for the suggestion.Currently there is work around that you can use, replace the "space" with "&#32".

-BV52

Hi, I'm using this library in Drupal 7 but when I replace space with "&#32" it just displays that in the frontend as a string. How can I use this workaround?

Alternatively is there an update to this library that allows marking phrases as well as words?

BV52's picture

Hi bez.lashkari,

Sorry this workaround doesn't work anymore.

-BV

serettig's picture

Hi,

As far as I know the content type supports longer expressions, but they mustn't be at the beginning or end of a paragraph. If the longer phrase is in a sentence it'll work.

I've submitted a pull request to fix this bug/behavior some time ago, maybe someone from the core team could check it out. It also improves the way line breaks are handled with longer expressions.

sr258

otacke's picture

Hi Sebastian!

I have 28 pull requests waiting, so get in line ;-)

Joke aside. I think just allowing multiple words is an inadequate solution, because unless you can define distractors that consist of a bundle of words, you give away answers: If a user can choose a possible solution that contains multiple words, he/she can be sure it's a correct one.

Best,
Oliver

serettig's picture

Hmm, you still submit PRs? Honestly, I've given up on this as I don't have the impression that they will ever be accepted. I see the reasons behind it and I don't blame Joubel for it personally. Still it's frustrating...

While the solution of simply allowing multiple word without proper distractors might not be perfect it's better than nothing. Not every H5P exercise is a test in which the score matters. It can also simply be used to guide thinking and learning. I know of many teachers who'd like to have multi-word selections and who don't worry about the incorrect distractors. The requests in the forum show that people have used the hack and weren't concerned about the missing distractors.

otacke's picture

Hi Sebastian!

Yes, I still post pull-requests, keep existing ones updated and send out reminders from time to time. Few weeks ago, I had more than 30 open pull-requests. I agree that the situation can be frustrating, but I can be patient if I need to be :-) Have you read the November 2019 newsletter? It says: "One of the top priorities as we grow the team will be to foster a more active open source development community. We’ll improve the development experience and invest many more resources into reviewing and handling contributions." 

Regarding "Mark the Words": Even if you don't design tests, as a user I would feel kind of fooled when I realize that I can be 100 % sure of a solution; requests here in the forum don't mean people have thought of the distractor problem. Having said all this: I could have lived with the "fix" and an extra warning, but it's not my decision and I learned to accept that.

Best,

Oliver

Would it work to have underscores always display as spaces and underscore-linked phrases would always act as a unit when the student highlights?  That way, phrases that are correct answers could be written as *this_is_a_correct_answer_phrase* and distractor, incorrect answers could be written without the asterisks (e.g. this_is_an_incorrect_answer_phrase).  If both types of phrases highlight as a unit, students can't tell which ones are correct and which ones aren't.

Unless I'm missing something, this would allow words, phrases, even sentences and paragraphs, to be correct answers or distractors, without the student being able to tell the difference. The only downside is that you can't have underscores in your text. You could always create an escape sequence to get around that problem (e.g. a triple-underscore would display as a single underscore, or some such thing).

Disclaimer: I'm *very* much wanting to to use this widget with phrases! :-)