Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 2.5.4, 2.6.1
-
Fix Version/s: 2.7
-
Component/s: Assignment
-
Labels:
-
Testing Instructions:
-
Affected Branches:MOODLE_25_STABLE, MOODLE_26_STABLE
-
Fixed Branches:MOODLE_27_STABLE
-
Pull from Repository:
-
Pull Master Branch:
MDL-44349-master -
Pull Master Diff URL:
Description
The count_words() function in lib/moodlelib.php counts the number of word boundaries following a word character. Since punctuation characters are classed as word boundaries, the reported word count for long strings can be fairly inaccurate (e.g. "can't" is counted as two words).
Attachments
Issue Links
- has been marked as being related by
-
MDL-44375 TinyMCE wordcount plugin should give results consistent with Moodle's own word counting function
-
- Closed
-
- Testing discovered
-
MDL-35373 Word limit feature for online text submission
-
- Closed
-
- will be (partly) resolved by
-
MDL-45361 2-byte characters not included in word counts
-
- Closed
-