Word Select
Versions
Current version
2.56 (2026041700)
2.56
Plugin type: Question types
Frankenstyle component name: qtype_wordselect
Version build number: 2026041700
Version release name: 2.56
Maturity: Stable
Supported Moodle versions: 5.0, 5.1, 5.2
Repository URL (Git): https://github.com/marcusgreen/moodle-qtype_wordselect
Repository branch:
Repository tag: v2.56
Issue/bug tracker URL: https://github.com/marcusgreen/moodle-qtype_wordselect/issues
The Moodle Wordselect question type by Marcus Green
Version 2.56 Apr 2026
Confirmed compatibility with Moodle 5.2
Added new Behat test for exporting a wordselect question.
Thanks to Smitha Arlikatti for the contribution.
https://github.com/marcusgreen/moodle-qtype_wordselect/pull/67
Fixed Behat test scenario ordering in add_quiz.feature and export.feature
to resolve intermittent CI failures.
Version 2.55 Oct 2025
Confirmed compatibility with Moodle 5.1
Moved items class to a separate file for coding standards compliance.
Thanks to Carson Tam for creating an issue and a fix for
Failing plugin_checks_test::test_db_install_file test
https://github.com/marcusgreen/moodle-qtype_wordselect/issues/68
Version 2.54 Apr 2025
Confirmed compatibility with Moodle 5.0
Thanks to Philipp Imhof with help getting the ci testing to work. Thanks to Ralf Erlebach for a fix to a division by zero error.
https://github.com/marcusgreen/moodle-qtype_wordselect/pull/58/
Version 2.53 Oct 2024
Switched from using jquery to plain javascript in response to
https://github.com/marcusgreen/moodle-qtype_wordselect/issues/56
Bumped version and having run automated tests against master confirmed compatibility
with Moodle 4.5
Version 2.52 Apr 2024
Updated to support PHP 8.2, and removal of @core tags in behat tests.
Thanks to Tim Hunt at the UK Open University
https://github.com/marcusgreen/moodle-qtype_wordselect/pull/52.
Version 2.50 Oct 2023
Removed all references to the function initialise_question_instance, it was throwing an error in
PHP 8.1 that that highlighted it was not doing anything. Fixed behat tests to work with changes to
interface in Moodle 4.3.
Version 2.49 Jul 2022
More English language examples. Refactoring of render code. New behat test for question import. make
filter test check grade.
Version 2.48 Apr 2022
Fix for issue 42
https://github.com/marcusgreen/moodle-qtype_wordselect/issues/42
MLang2 filter (and possibly other filters) were not being processed. Added a fix and
sample questions to help with testing. Thanks to https://github.com/ukampanart for reporting this
And thanks to Iñigo Zendegi Urzelai for feedback on the fix and for working on maintaing the excellent MLang2 filter
Fixed issue https://github.com/marcusgreen/moodle-qtype_wordselect/issues/44. Removed white-space: nowrap css because multi word selections ran over right hand side. Thanks to Tim Hunt of the UK Open University for reporting this and for tips on getting the behat tests working with Moodle 4.0 and many other ideas.
Bumped Moodle requirement to 3.8.
Don't upgrade to this version if MS IE 11 support is essential. The way the javascript is built means it may not work with it.
Version 2.47 Sep 2021
Fix for issue 37
https://github.com/marcusgreen/moodle-qtype_wordselect/issues/37
The right answers were being displayed whatever boxes were checked in the review options section
of the quiz editing form. Thanks to Ulrike Albers for reporting this and for more detail
from Joseph Rézeau. https://moodle.org/mod/forum/discuss.php?d=416718#p1679175
Version 2.46 Jul 2021
Fix for Mobile App/ionic5, long text questions were cutting off instead of wrapping. More english language example questions.
Version 2.45 May 2021
Added handling of both ionic3 and ionic5 for the mobile app. Added more sample english questions
see examples\en
Version 2.44 Jun 2020
Fixed an issue with embedded audio. If text appears after embedded audio selections
are ignored when the question is submitted. This only happens when the multimedia filter
is turned on. I have moved the format code to later in the renderer and this fixes the issue.
My thanks to Henny Jellema for reporting this.
Thanks to Tim hunt for an update to styles.css to make CSS rules safer. This can help when
using a custom theme.
Version 2.43 Feb 2020
This version requires at least Moodle 3.7.0. It will not work correctly
with earlier versions.
valeriia-s reported that word selection would not work if a page contained
multiple instances of the question type. Tim Hunt advised me
on ways to address it and in selection.js. This bought in the need for Moodle 3.7.
https://github.com/marcusgreen/moodle-qtype_wordselect/issues/26
Fix for when forceclean is on from Hubong Nguen for the UK OU.
https://github.com/marcusgreen/moodle-qtype_wordselect/pull/23
There is a plan for forceclean to default to on.
https://tracker.moodle.org/browse/MDL-62352
Forceclean entirely broke Wordselect rendering (and other plugins).
Mahmoud Kassaei from the UK OU reported that trailing puncuation was hard to see on selected text
https://github.com/marcusgreen/moodle-qtype_wordselect/pull/24
The CSS has been adjusted to make it clearer.
Behat (automated) tests broke on read-only and Tim Hunt of the UK OU
contributed code as a fix.
https://github.com/marcusgreen/moodle-qtype_wordselect/pull/25
Added more unit tests.
Version 2.42 Nov 2019
Improved keyboard navigation, the arrow keys now move forward/backward/up/down. Many thanks to
Huong Nguyen for the coding, including behat tests and to the UK Open University (OU) for funding the
development.
Changed selection javascript to use amd technology, thanks to Mahmoud Kassaei of the OU for the suggestion to do that.
Thanks to Tim Hunt and Sam Marshall of the OU for reporting the issue on templatepath in mobile.php
Thanks to Tim hunt for the fix for 'show num parts correct' and the behat updates.
Version 2.41 Feb 2019
Added more sample english language questions.
Fixed line-height to ensure correct display in ios/mobile app
Fixed error eslint checker that const is a reserved word (in mobile.js)
Version 2.4 Dec 2018
Significant new feature: support for the Moodle Mobile App. Added a collection of
sample english language questions in
examples\en\english_language.xml that can be imported.
Briefly tested with the Embed question filter
https://moodle.org/plugins/filter_embedquestion
and StudentQuiz
https://moodle.org/plugins/mod_studentquiz
Addition of defensive code for issue https://github.com/marcusgreen/moodle-qtype_wordselect/issues/15
Version 2.32 Dec 2018
The clear incorrect responses and show number of correct responses checkboxes in Hints in the
Multiple tries section of the editing form had no effect. This bug only had an effect when
using the Interactive with multiple tries question behaviour. The behaviour is now as
expected with selections being cleared and a count of correct responses being shown. My
thanks to Dr Anna Stefanidou for reporting this issue.
Version 2.31 Aug 2018
Fix to grading when using Interactive with multiple tries. Thanks again to Matthias Giger
for reporting this. Fixed wordpenalty in sample questions and added new behat and phpunit
tests.
Version 2.3 Aug 2018
Fix to the penalty applied when using the question behaviour Interactive with multiple
tries. Thanks to Matthias Giger and his students who reported that a single wrong
selection would reduce the grade to zero. Code compliance fixes in the form of
eslinting of javascript.
Version 2.2 July 2018
Significant new feature, wordpenalty. Configure the fractional value to be deducted
for each incorrectly selected word. Previously this was fixed at 1, i.e. for every
incorrectly selected word one point was deducted down to zero. This could result
in rather harsh grading. Now it can be configured as a fraction e.g. .5 of a mark
deducted for each incorrect selection. Implemented as a list of percentages in the editing
form called incorrect selection penalty. Thanks to the person who suggested this feature.
Thanks to Daniel Thies for help with testing.
Previously the penalty for incorrect attempts in interactive mode was ignored. Now the percentage
is used to deduct marks for each submission.
Version 2.1 May 2018
Added privacy classes as part of GDPR compliance. Further inclusion of tags such as
setting color, more credit to lethevinha for that work.
Version 2.0 April 2018
Multiword mode. If any text is surrounded by double delimiters e.g. [[cat]] it will be
treated as correct, and any selectable non correct text must be given single delimiters
e.g. [mat]. Text can thus include multiple words. CSS Formatting indicates which text is selectable.
Updated phpdocs comments, Added significant new behat and phpunit tests. Did some testing
to check MathJax expressions will render as correct gaps in normal and multiword mode
New [w] icon with a hint of red. Added an svg vector version so no pixelation on zoom.
Credit to Troy Patterson for ideas and inspiration on the icon
Huge credit to https://github.com/lethevinh for ideas, code and behat tests for ensuring
formatting tags such as <b> etc are retained and other stuff.
With thanks to German Valero for substantial additions to the documentation at
https://docs.moodle.org/en/Wordselect_question_type
Version 1.1 July 2017
Fixed a bug that prevented audio files working correctly in the question text. Thanks to Matthias Giger for
reporting this. Fixed an issue that prevented any files being inserted into the introduction area. Improved
phpdoc of the source code.
Version 1.0 Sept 2016
Thanks for advice and support to Tim Hunt, Nadav Kavalerchik, Matthias Giger, German Valero and others in
the Moodle forums.
It is not possible to insert images into the welcome text area using the editor menu, but you can
paste images into that area.