Question types: Pattern match with molecular editor

Maintained by Tim at Lone Pine Koala SanctuaryTim Hunt, Picture of Jamie PrattJamie Pratt, Picture of Phil ButcherPhil 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.
341 sites
9 fans
Current versions available: 7

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)
Picture of Jamie Pratt
Jamie Pratt: Developer
Picture of Phil Butcher
Phil Butcher: Question type designer
Picture of Colin Chambers
Colin Chambers: Developer
Picture of Chris Nelson
Chris Nelson: Product owner
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • 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
  • MD shot of me from his iphone4
    Wed, Jul 3, 2013, 8:06 PM
  • Picture of Jason Behory
    Wed, Aug 27, 2014, 12:04 AM
    I am running into issues with this plugin on my moodle 2.6.4 installation. I have installed version 1.4 following the instructions listed here however when I create and preview a question of this type in moodle the JME applet does not load.

    I see in my access logs that a request is being made for /question/type/pmatchjme/jsme/jsme.nocache.js

    This file(s) are not included in this plugin. I have the jmol/jsmol filter installed in my moodle installation. Any help would be appreciated
  • Picture of Colin Chambers
    Thu, Aug 28, 2014, 5:41 PM
    Great spot jason. Sorry about that.

    It turns out that the zip in the Plugins directory is a bit out of date.

    The git repository is more up to date but there are two fixes that still need to be deployed to it.

    I'm in the process of applying and testing the fixes. Then I will push to the repository and get the plugin zip in the plugins database updated.
  • Picture of Colin Chambers
    Thu, Aug 28, 2014, 9:10 PM
    I've updated the git repository with the latest fixes (There was a javascript problem in IE 8) You'll find the JSME folder with the jsme.nocache.js file in there.

    If you're comfortable with git just pull the latest version, visit admin > notification and pmatchjme will be updated (the caches need to be flushed to get the latest javascript files).

    I'll look at getting the version in the Moodle plugins directory changed.
  • Picture of Jason Behory
    Thu, Aug 28, 2014, 9:53 PM
    Thanks Colin. The version of github works. I should have spotted it sooner. I was assuming the zip here and on github were identical.
  • Tim at Lone Pine Koala Sanctuary
    Tue, Nov 11, 2014, 2:59 AM
  • Picture of Matthias Wieser
    Wed, Jul 3, 2019, 6:25 PM
    Is a version for Moodle 3.7 planned? We have problems with this type of question on our installation. The question type gives no points or other reaction when answering questions.
  • Tim at Lone Pine Koala Sanctuary
    Wed, Jul 3, 2019, 6:49 PM
    I have not yet had time to test my plugins with Moodle 3.7. It surprises me if it has stopped working, because I don't think anything significant changed in 3.7 that would affect this question type, so I don't know why it is not working for you.
1 2
Please login to post comments