Your Moodle version

Question types: Pattern match with JME editor

Maintained by Tim at Lone Pine Koala Sanctuary Tim Hunt, Picture of Jamie Pratt Jamie Pratt, Picture of Phil Butcher Phil Butcher
A question type where the user enters their response using the Java Molecular Editor, and the response is then graded using the OU's pattern-match algorithm.


This plugin is part of set Open University.

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.


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

Comments RSS

Show comments
  • 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, )]
  • Picture of arvel atwater
    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.
  • Picture of Phil Butcher
    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.
  • Picture of Phil Butcher
    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.
  • Picture of Jamie Pratt
    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
  • Tim at Lone Pine Koala Sanctuary
    Fri, Aug 24, 2012, 6:09 PM
    That is roughly what I am doing. I will ask you to peer review the patch when it is done.
  • Tim at Lone Pine Koala Sanctuary
    Fri, Aug 24, 2012, 7:33 PM
  • B.Havel
    Tue, Aug 28, 2012, 7:46 PM
    Now is OK, new install was without problem, upgrades problem was in history track.
  • Picture of George Chen
    Wed, Sep 19, 2012, 9:12 AM
    I had a client reported the following JME problem. Please help to identify the issue.
    The JME editor now seems to work perfectly; however, the question engine does not recognize either of the correct answers when they are given. I assume this is a problem with the pattern match mechanism, since there is a function in the JME Editor to acquire the SMILES string and it is identical to the SMILES string entered in the question (although the question version requires escape characters, as per the manual: "
  • Picture of Phil Butcher
    Wed, Sep 19, 2012, 4:25 PM
    George can you find out exactly what the molecule or the correct answers are so that I can try them.
  • MD shot of me from his iphone4
    Wed, Jul 3, 2013, 7:53 PM
Please login to post comments