Question types: Pattern match

Maintained by Tim at Lone Pine Koala Sanctuary Tim Hunt, Picture of Phil Butcher Phil Butcher
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.

Pattern match 1.5 for Moodle 2.5+

Release notes

Pattern match question type

This question type was created by Jamie Pratt, working for the Open University

Students can enter a response of up to 20 words, which is then graded by matching
it against vaious model answers expressed using a sophisticated patten
matching algorithm. See

This question type is has been available since Moodle 2.1+. This version is
compatible with Moodle 2.5+.

You will want to install superscript/subscript editor plugin
(see This makes the superscript
and subscript options in the question editing form. If the editor is not
installed the question type can still be used but these options will not be

This question type should be installed like any other Moodle add-on. See

To install the question type using git, type this command in the root of your
Moodle install

git clone git:// question/type/pmatch
echo /question/type/pmatch/ >> .git/info/exclude
git clone git:// lib/editor/supsub
echo /lib/editor/supsub/ >> .git/info/exclude
Moodle 2.5, 2.6, 2.7

Version information

Version build number
Version release name
1.5 for Moodle 2.5+
Can be updated from
1.0 (2010090501), 1.0 (2010090501), 1.1 for Moodle 2.1 (2012081600), 1.1 for Moodle 2.2 (2012081600), 1.1 for Moodle 2.3+ (2012081600), 1.2 for Moodle 2.3+ (2013021200), 1.3 for Moodle 2.5+ (2013070100), 1.4 for Moodle 2.5+ (2014010800)
Can be updated to
1.6 for Moodle 2.6+ (2014111200)
Stable version
MD5 Sum
Supported software
Moodle 2.5, Moodle 2.6, Moodle 2.7

Version control information

Version control system (VCS)
VCS repository URL
VCS branch
VCS tag

Default installation instructions for plugins of the type Question types

  1. Make sure you have all the required versions.
  2. Download and unpack the module.
  3. Place the folder (eg "myquestiontype") in the "question/type" subdirectory.
  4. Visit to finish the installation