Pattern match with molecular editor

Question types ::: qtype_pmatchjme
Maintained by Tim at Lone Pine Koala SanctuaryTim Hunt, Jamie Pratt, Phil Butcher
A question type where the user enters their response using the JavaScript Molecular Editor, and the response is then graded using the OU's pattern-match algorithm.
Latest release:
425 sites
12 fans
Current versions available: 9

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.


This plugin is part of set Open University.


Screenshot #0


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

Comments RSS


  • Pedro Crispim
    Sun, Feb 26, 2012, 1:34 AM
    This question gives an error in the language pack. it occurs when we want to personalize the language settings.
  • Pedro Crispim
    Sun, Feb 26, 2012, 1:36 AM
    Error is:
    Duplicate entry 'en-361-smiles_C' for key 2 INSERT INTO mdl_tool_customlang (lang,componentid,stringid,original,master,timemodified,outdated,local,timecustomized) VALUES(?,?,?,?,?,?,?,?,?) [array ( 0 => 'en', 1 => '361', 2 => 'smiles_C', 3 => 'aliphatic carbon atoms', 4 => 'aliphatic carbon atoms', 5 => 1330189912, 6 => 0, 7 => NULL, 8 => NULL, )]
  • Fri, May 4, 2012, 4:26 AM
    thanks nice pool
  • B.Havel
    Fri, Aug 24, 2012, 4:41 PM
    Error in language pack in version 2.3 (2012081600) occurs too. Very sad for us.
  • Fri, Aug 24, 2012, 4:44 PM
    We're about to start looking at 2.3. I'll get this issue fixed as part of that.
  • Tim at Lone Pine Koala Sanctuary
    Fri, Aug 24, 2012, 5:50 PM
    Just to explain what is going on here. There are actually two different strings here: smiles_c and smiles_C. You can see those are different. I can see those are different. MySQL thinks they are identical.

    However, it is probably not a great idea to have two language strings that differ only be upper/lower case, so I will fix this.
  • Fri, Aug 24, 2012, 5:59 PM
    Ah. Well of course in SMILES 'c' and 'C' have clear, and different, meanings. 'c' is aromatic (as in benzene rings); 'C' is aliphatic (straight chains). Which tells you what to call them to distinguish them for the SQL.
  • Fri, Aug 24, 2012, 6:08 PM

    Thanks for fixing this Tim. I was using get_string to fetch the human name for the SMILES character suffixing the character with 'smiles' and then passing it to get_string. I guess one way to fix this might be to prepend big_ onto an upper case character and convert it to a lower case character appending that to smiles and looking up the translation with get_string
Please login to post comments