Pattern match

Question types ::: qtype_pmatch
Maintained by TimTim Hunt, Phil Butcher
Part of set Open University.
Allows a short response of one or a few sentences that is graded by comparing against various model answers, which are described using the OU's pattern match syntax.
Latest release:
1637 sites
565 downloads
48 fans
Current versions available: 12

There are working examples in eAssessment with Moodle on our OpenLearn site.

The documentation is in How to create questions in Moodle on that site.

Screenshots

Screenshot #0

Contributors

Tim
Tim Hunt (Lead maintainer)
Phil Butcher: Question type designer
Jamie Pratt: Developer
Colin Chambers: Developer
John Beedell: Developer
Chris Nelson: Product owner
Please login to view contributors details and/or to contact them

Comments RSS

Comments

  • Joe Harris
    Tue, 14 Jul 2015, 8:28 PM
    Hi,
    Having an issue with questions where the pattern is looking for multiple matches in the same sentence, e.g. 'as x increases, y decreases' where I'm trying to match both the 'x increases' and 'y decreases' parts. The same answer works just fine if I put a full stop in between clauses, but doesn't detect a match for a single sentence. I'm quite wiling to accept I'm doing something silly, but any help would be highly appreciated.
  • Phil Butcher
    Wed, 15 Jul 2015, 3:16 AM
    Would match_p0 (x_inc* y_dec*) give you what you want? i.e. x must be immediately followed by inc(reases) (proximity of 0 words between x and inc*) and y immediately followed by dec(reases))?
  • Phil Butcher
    Wed, 15 Jul 2015, 3:21 AM
    Should of course have added the o and w matching options too so that any order of 'y decreases x increases' will work as well as allowing extra words. So complete it's match_owp0 (x_inc* y_dec*). Will that do what you want?
  • Joe Harris
    Wed, 15 Jul 2015, 8:55 PM
    Hi Phil,
    Thanks, the minimal working example always elucidates things! My syntax was off in the match. Should have read the documentation more thoroughly!
  • umapathi duttuluru
    Thu, 19 Nov 2015, 8:03 PM
    Hi Tim/jamie/jil,

    Thanks for your hardwork providing us pattern match question type

    I have tried to create the pattern match question type when i entered the text "match_mow(Talk about what happened to the rooms in the house and why they couldn’t stay in a hotel Use two sentences)" in the "Answer" field then click "Submit".

    It shows error message "Missing closing bracket in code fragment "match_mow(Talk about what happened to the rooms in the house and why they couldn".

    Please let us know how to allow single quotes like "couldn’t".


    Thanks for your help in advance.


  • Tim
    Thu, 19 Nov 2015, 10:39 PM
    I think you escape single quotes with a \. So couldn\’t

    Note that the question type works better if you just try to match the keywords, not every word in the sentence.
  • umapathi duttuluru
    Sat, 21 Nov 2015, 5:56 PM
    Hi TIm,

    Thank you for your quick reply.

    "match_mow(Talk about what happened to the rooms in the house and why they couldn’t stay in a hotel Use two sentences)"

    Sorry in the above content it is not "single quote" it is given as a "left single curly quote"

    ‘ ‘ ‘ left single curly quote

    Thanks for your help.



  • Tim
    Tue, 24 Nov 2015, 2:02 AM
    Sorry, I am not sure without some in-depth debugging that I don't have time to try now.

    Can you just avoid using that character?
  • Tim
    Thu, 4 Aug 2016, 11:08 PM
    I have just pushed a major set of changes which adds helpful tools for teachers creating questions, and verifying that they work as expected. That is all thanks to the hard work of John Bedell and Colin Chambers.
  • J P
    Mon, 12 Jun 2017, 5:22 PM
    Guys, great plugin, thank you for the effort put in here.

    Is there a max number of answers that can be used? Does performance get affected?

    I'll find out shortly I guess, am about to try 100+ answers. Will feedback.
  • Gavin Botten
    Mon, 16 Oct 2017, 7:37 PM
    Afternoon Guys

    Let me start by saying I love this question type, however, we have one issue with it, because it is not Moodle Mobile App compatible, we are not able to make use of it. Our school just recently implemented the Drag & Drop type questions into our quizzes, and thanks to a bug, they are not usable in Chrome on android devices(don't know who to contact about this), so while I'm chomping at the bit to teach my English teachers how to use your Patter Match question, IT does not work and is not supported by the Moodle Mobile App.

    Please could you guys look into this for us and give me some feedback as to whether you will be making it App friendly, I really hope you do because I think that our English teachers could make good use of it.

    Regards
    Gavin
  • Tim
    Mon, 16 Oct 2017, 7:54 PM
    This is something we want to investigate when we have time. I can't guess when that might be. But, thank you for your enthusiasm for this question type.
  • Sakshi Goel
    Fri, 3 Nov 2017, 5:32 PM
    Hello ,

    Is Pattern match question type compatible with moodle 3.3
  • J P
    Fri, 3 Nov 2017, 5:48 PM
    We are using successfully on 3.2.2
  • Gavin Botten
    Tue, 7 Nov 2017, 7:28 PM
    @Sakshi.

    Yes it works fine in 3.3, it's only issue is with the Moodle Mobile App, but I'm sure these guys will get that sorted out when they have the chance.
Please login to post comments