## Question types: Correct writing

qtype_correctwriting
Maintained by Oleg Sychev
Correct Writing question type are focused on the learning grammar of the new language. It can found various mistakes in student's response and give mistake messages and hints.
4k
3

Correct Writing question type are focused on the learning grammar of the new language. It can found various mistakes in student's response and give mistake messages and hints.

In first release it can find token sequence mistakes: absent tokens, extraneous tokens and misplaced tokens. Token is a minimal language unit like word, punctuation mark etc. For now two language supported: English language and C programming language.

You can download this question type along with all subplugins, necessary for it, using our Google Code site

### Sets

This plugin is part of set Correct Writing Question Type.

### Contributors

Oleg Sychev (Lead maintainer): Idea, string analysis method, general architecture, hints implementation
Dmitry Mamontov: Question type code, sequence analyzer, picture generation

• Wed, Mar 13, 2013, 9:32 AM
Oleg - Many thanks for sharing the correct writing question type. I was able to install without any issues. One concern I have is about the dependencies. This question type is listed as being for Moodle 2.4 and many of the dependencies do not show having a version for 2.4. We may want to be a little careful to ensure that everything seems to match up with respect to the versions (i.e. a 2.4 version of each plugin being available). I know you have a link to have them all together but if there begin to be differences between the versions that system may fall apart without carefully managing the branches. I presume that you want this plugin added to the PERL set. I will go ahead and approve this plugin and add it to the set. Please do not hesitate to let me know if there is anything I can do to be supportive of your efforts. Peace - Anthony

p.s. - Any objections to changing the URL for the source code to https://code.google.com/p/oasychev-moodle-plugins/source/browse/#hg%2Fquestion%2Ftype%2Fcorrectwriting which is more specific (rather than the more generic one that points to the root of the repository)?
• Tue, Aug 6, 2013, 5:05 PM
'It can found various mistakes in student's response' - very clever!
• Sat, Nov 8, 2014, 3:04 AM
There is some bug in string_pair.php. Look at the first line. It should be <?php not <?. It makes problems in strickt mode.
• Wed, Nov 26, 2014, 3:28 AM
In the manual picture there are 7 penalties to configure. I've installed current version and can find only 4 of them. Where are the missing penalties?
-missing token
-extra token
-absent token mistake hints
In this configuration a forgotten ")" in student's answer of for ( int i = 4; i <= 10; i++)
leads to 33% minus. This ist too strict.
• Wed, Nov 26, 2014, 4:22 AM
Sepp, penalties with green asterisk are "advanced" and hidden by default.
did you see "Show advanced" or similar button on the form? Press it and you will see all settings.
• Wed, Nov 26, 2014, 6:20 AM
Sorry, no such button. Some of green-asterisk-entries are visible, e.g. :
-Penalty for misplaced token
-Maximum percent of mistakes
• Sat, Dec 6, 2014, 12:47 AM
Thanks, Sepp. Two penalties was really disappeared from the question editing screen during internal refactoring. A placed a new version there (2.6.1.) that should make them visible, please try it.
• Tue, Dec 9, 2014, 7:57 AM
Thank you. Now it works! I can set the penalty for missing token.

But, ...
not every token is as important as each of the others. Is it possible to add an indiviual missing penalty in the description token window? eg. separated by ~
for: for command~10%
( : bracket~5%
int : data type~20%
and so on

Sepp
• Fri, Jan 9, 2015, 5:37 AM
@Khac: Edit first line of string_pair.php (and other php files) from "<?" to "<?php"