﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Millisecond Forums » Millisecond Forums » Inquisit 3  » Counting words in openended</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Thu, 09 Apr 2026 13:16:20 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Counting words in openended</title><link>https://forums.millisecond.com/Topic6599.aspx</link><description>&lt;p&gt;And just for fun here's a little word-counting algorithm that doesn't require any recursion:&lt;/p&gt;
&lt;p style="padding-left: 30px;"&gt;&lt;span style="font-family: courier new,courier;"&gt;&amp;lt;values&amp;gt;&lt;br /&gt;/ mysentence = "The quick brown fox jumps over the lazy dog."&lt;br /&gt;&amp;lt;/values&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;expressions&amp;gt;&lt;br /&gt;/ nwords = length(values.mysentence)-length(replaceall(values.mysentence," ",""))+1&lt;br /&gt;&amp;lt;/expressions&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;text mytext&amp;gt;&lt;br /&gt;/ items = ("The sentence ~"&amp;lt;%values.mysentence%&amp;gt;~" contains &amp;lt;%expressions.nwords%&amp;gt; words.")&lt;br /&gt;&amp;lt;/text&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;~Dave&lt;/p&gt;</description><pubDate>Fri, 09 Sep 2011 12:50:45 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: Counting words in openended</title><link>https://forums.millisecond.com/Topic6598.aspx</link><description>&lt;p&gt;You'll want to use /isvalidresponse along with a bunch of (recursive*) &amp;lt;expressions&amp;gt;. Not easy to do, but should be possible. (I'd recommend counting the number of spaces.) Using the number of characters as criterion would be considerably easier (/range attribute or use the length() function).&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;~Dave&lt;/p&gt;
&lt;p&gt;*cf. the Self-Paced Reading script available from the Task Library.&lt;/p&gt;</description><pubDate>Fri, 09 Sep 2011 07:57:38 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>Counting words in openended</title><link>https://forums.millisecond.com/Topic6595.aspx</link><description>&lt;p&gt;Is there a way to count words in openended while subjects are writing and using the count as a condition for ending the trial? More concretely, I want to modify the Picture Story Exercise module posted on the Inquisit website so that participants have to write a minimum of 100 words for each openenden iteam before they can move on to the next trail.&lt;/p&gt;</description><pubDate>Fri, 09 Sep 2011 07:25:47 GMT</pubDate><dc:creator>Oliver</dc:creator></item></channel></rss>