Millisecond Forums

Pipe a randomly selected element from a list (a pool of name) in a sentence

https://forums.millisecond.com/Topic33942.aspx

By sodagreen_l - 2/18/2022

Hi, I am trying to present several description about an object, however, I will need each participant to see a different name for the description sentence. 

For example, this is my pool, which has two names:
<pool 1>
Bob
Alice

This is my description sentence
<pool 1> is having dinner.

What I want:
Participant 1 sees Bob is having dinner, and participant 2 sees Alice is having dinner. The order will be randomized.

I am new to the Inquisit 6, and have been struggle with this for the past few weeks. If would be very helpful if you could provide some insight on how do I approach this (what syntax? what logic...?)

Thanks you so much!!

By Dave - 2/18/2022

lin00 - 2/18/2022
Hi, I am trying to present several description about an object, however, I will need each participant to see a different name for the description sentence. 

For example, this is my pool, which has two names:
<pool 1>
Bob
Alice

This is my description sentence
<pool 1> is having dinner.

What I want:
Participant 1 sees Bob is having dinner, and participant 2 sees Alice is having dinner. The order will be randomized.

I am new to the Inquisit 6, and have been struggle with this for the past few weeks. If would be very helpful if you could provide some insight on how do I approach this (what syntax? what logic...?)

Thanks you so much!!


Can you please provide some actual code? What you posted is not Inquisit syntax.
By sodagreen_l - 2/18/2022

Dave - 2/18/2022
lin00 - 2/18/2022
Hi, I am trying to present several description about an object, however, I will need each participant to see a different name for the description sentence. 

For example, this is my pool, which has two names:
<pool 1>
Bob
Alice

This is my description sentence
<pool 1> is having dinner.

What I want:
Participant 1 sees Bob is having dinner, and participant 2 sees Alice is having dinner. The order will be randomized.

I am new to the Inquisit 6, and have been struggle with this for the past few weeks. If would be very helpful if you could provide some insight on how do I approach this (what syntax? what logic...?)

Thanks you so much!!


Can you please provide some actual code? What you posted is not Inquisit syntax.

<item name_pool_1>
/ 1 = "Akar"
/ 2 = "Toma"

<list targetname>
/ items = (1,2)
/ selectionmode = random
/ replace = false
/ select = noreplace
</list>

<text targetname>
/ items= name
/ select = list.targetname.nextvalue
/ replace = false
</text>

****Description of the target****
<item nomind>
/ 1 = "This target belongs to the group, <text targetname>."
/ 2 = "This <text targetname> is brand-new."
/ 3 = "This <text targetname> is durable."
/ 4 = "This <text targetname> has different functions."
/ 5 = "This <text targetname> has a pleasant scent."
/ 6 = "This <text targetname> is light and handy."
/ 7 = "This <text targetname> is mechanical."
/ 8 = "This <text targetname> is automatic."
/ 9 = "This <text targetname> is stationery."
</item>

I want the <text targetname> to be replaced with either Akar or Toma.

Thank you!
By Dave - 2/18/2022

lin00 - 2/18/2022
Dave - 2/18/2022
lin00 - 2/18/2022
Hi, I am trying to present several description about an object, however, I will need each participant to see a different name for the description sentence. 

For example, this is my pool, which has two names:
<pool 1>
Bob
Alice

This is my description sentence
<pool 1> is having dinner.

What I want:
Participant 1 sees Bob is having dinner, and participant 2 sees Alice is having dinner. The order will be randomized.

I am new to the Inquisit 6, and have been struggle with this for the past few weeks. If would be very helpful if you could provide some insight on how do I approach this (what syntax? what logic...?)

Thanks you so much!!


Can you please provide some actual code? What you posted is not Inquisit syntax.

<item name_pool_1>
/ 1 = "Akar"
/ 2 = "Toma"

<list targetname>
/ items = (1,2)
/ selectionmode = random
/ replace = false
/ select = noreplace
</list>

<text targetname>
/ items= name
/ select = list.targetname.nextvalue
/ replace = false
</text>

****Description of the target****
<item nomind>
/ 1 = "This target belongs to the group, <text targetname>."
/ 2 = "This <text targetname> is brand-new."
/ 3 = "This <text targetname> is durable."
/ 4 = "This <text targetname> has different functions."
/ 5 = "This <text targetname> has a pleasant scent."
/ 6 = "This <text targetname> is light and handy."
/ 7 = "This <text targetname> is mechanical."
/ 8 = "This <text targetname> is automatic."
/ 9 = "This <text targetname> is stationery."
</item>

I want the <text targetname> to be replaced with either Akar or Toma.

Thank you!

Simply do

<values>
/ targetname = ""
</values>

<list pool1>
/ items = ("Akar", "Toma")
</list>

****Description of the target****
<item nomind>
/ 1 = "This target belongs to the group <%values.targetname%>."
/ 2 = "This <%values.targetname%> is brand-new."
/ 3 = "This <%values.targetname%> is durable."
/ 4 = "This <%values.targetname%> has different functions."
/ 5 = "This <%values.targetname%> has a pleasant scent."
/ 6 = "This <%values.targetname%> is light and handy."
/ 7 = "This <%values.targetname%> is mechanical."
/ 8 = "This <%values.targetname%> is automatic."
/ 9 = "This <%values.targetname%> is stationery."
</item>

<block example>
/ onblockbegin = [
    // select target name to use in this block of trials
    values.targetname = list.pool1.nextvalue;
]
/ trials = [1-9 = descriptiontrial]
</block>

<trial descriptiontrial>
/ stimulusframes = [1=descriptiontext]
/ validresponse = (57)
</trial>

<text descriptiontext>
/ items = nomind
/ select = sequence
</text>
By sodagreen_l - 2/18/2022

This is very helpful!! Thank you!! In addition to that, I want to present a picture above the each sentence of description, and there will only be one sentence per page. Like this for each page:

picture of the target
the sentence describe the target.
</page>

for all 9 sentences of descriptions, and have the order of these 9 sentences to be random (except for the first sentence).

This is my code for the picture:
<picture nomind>
/ items = ("no-mind-1.jpeg")
/ position = (50%, 55%)
/ size = (5%, 5%)
/ erase = false
</picture>

<picture nomind>
/ items = ("no-mind-2.jpeg")
/ position = (50%, 55%)
/ size = (5%, 5%)
/ erase = false
</picture>

I also want to randomly draw one picture from these two pics.

Many thanks!!
By Dave - 2/18/2022

lin00 - 2/18/2022
This is very helpful!! Thank you!! In addition to that, I want to present a picture above the each sentence of description, and there will only be one sentence per page. Like this for each page:

picture of the target
the sentence describe the target.
</page>

for all 9 sentences of descriptions, and have the order of these 9 sentences to be random (except for the first sentence).

This is my code for the picture:
<picture nomind>
/ items = ("no-mind-1.jpeg")
/ position = (50%, 55%)
/ size = (5%, 5%)
/ erase = false
</picture>

<picture nomind>
/ items = ("no-mind-2.jpeg")
/ position = (50%, 55%)
/ size = (5%, 5%)
/ erase = false
</picture>

I also want to randomly draw one picture from these two pics.

Many thanks!!

Works the same way.

<values>
/ targetname = ""
/ picitem = 1
</values>

<list pool1>
/ items = ("Akar", "Toma")
</list>

<list picitem>
/ items = (1,2)
</list>

****Description of the target****
<item nomind>
/ 1 = "This target belongs to the group <%values.targetname%>."
/ 2 = "This <%values.targetname%> is brand-new."
/ 3 = "This <%values.targetname%> is durable."
/ 4 = "This <%values.targetname%> has different functions."
/ 5 = "This <%values.targetname%> has a pleasant scent."
/ 6 = "This <%values.targetname%> is light and handy."
/ 7 = "This <%values.targetname%> is mechanical."
/ 8 = "This <%values.targetname%> is automatic."
/ 9 = "This <%values.targetname%> is stationery."
</item>

<block example>
/ onblockbegin = [
// select target name to use in this block of trials
values.targetname = list.pool1.nextvalue;
    // select image to be displayed in this block of trials
    values.picitem = list.picitem.nextvalue;
]
/ trials = [1-9 = descriptiontrial]
</block>

<trial descriptiontrial>
/ stimulusframes = [1= nomind,descriptiontext]
/ validresponse = (57)
</trial>

<text descriptiontext>
/ items = nomind
/ select = sequence
/ position = (50%, 70%)
</text>

<picture nomind>
/ items = ("no-mind-1.jpeg", "no-mind-2.jpeg")
/ position = (50%, 55%)
/ size = (5%, 5%)
/ erase = false
/ select = values.picitem
</picture>

By sodagreen_l - 2/18/2022

Dave - 2/18/2022
lin00 - 2/18/2022
This is very helpful!! Thank you!! In addition to that, I want to present a picture above the each sentence of description, and there will only be one sentence per page. Like this for each page:

picture of the target
the sentence describe the target.
</page>

for all 9 sentences of descriptions, and have the order of these 9 sentences to be random (except for the first sentence).

This is my code for the picture:
<picture nomind>
/ items = ("no-mind-1.jpeg")
/ position = (50%, 55%)
/ size = (5%, 5%)
/ erase = false
</picture>

<picture nomind>
/ items = ("no-mind-2.jpeg")
/ position = (50%, 55%)
/ size = (5%, 5%)
/ erase = false
</picture>

I also want to randomly draw one picture from these two pics.

Many thanks!!

Works the same way.

<values>
/ targetname = ""
/ picitem = 1
</values>

<list pool1>
/ items = ("Akar", "Toma")
</list>

<list picitem>
/ items = (1,2)
</list>

****Description of the target****
<item nomind>
/ 1 = "This target belongs to the group <%values.targetname%>."
/ 2 = "This <%values.targetname%> is brand-new."
/ 3 = "This <%values.targetname%> is durable."
/ 4 = "This <%values.targetname%> has different functions."
/ 5 = "This <%values.targetname%> has a pleasant scent."
/ 6 = "This <%values.targetname%> is light and handy."
/ 7 = "This <%values.targetname%> is mechanical."
/ 8 = "This <%values.targetname%> is automatic."
/ 9 = "This <%values.targetname%> is stationery."
</item>

<block example>
/ onblockbegin = [
// select target name to use in this block of trials
values.targetname = list.pool1.nextvalue;
    // select image to be displayed in this block of trials
    values.picitem = list.picitem.nextvalue;
]
/ trials = [1-9 = descriptiontrial]
</block>

<trial descriptiontrial>
/ stimulusframes = [1= nomind,descriptiontext]
/ validresponse = (57)
</trial>

<text descriptiontext>
/ items = nomind
/ select = sequence
/ position = (50%, 70%)
</text>

<picture nomind>
/ items = ("no-mind-1.jpeg", "no-mind-2.jpeg")
/ position = (50%, 55%)
/ size = (5%, 5%)
/ erase = false
/ select = values.picitem
</picture>


Thank you for your prompt and helpful reply!!
By sodagreen_l - 2/18/2022

Hi Dave, so now, I am trying to create a memory check block, to make sure that participants were paying attention when they read the descriptions. I want to randomly present 4 out of 8 multiple questions, and let participants to choose the correct answer. This is my syntax for now, I will need help on how to randomly present 4 questions, how to know participants answers the question correctly, because if they answered it incorrectly for any 1 of the 4 questions, they will need to be redirect and return back to the description block. 
I know this is a lot to ask, thanks in advance!!

------------------------------------------------------------------------------------
***MEMORY CHECK: NO MIND*****
------------------------------------------------------------------------------------
<item nomind_mm_check>
Which of the following adjectives is used to describe the group, <%values.targetname%>?
Brand-new
Worn-out
I do not remember

Which of the following adjectives is used to describe the group, <%values.targetname%>?
I do not remember
Durable
Fragile

Which of the following adjectives is used to describe the group, <%values.targetname%>?
Multi-functional
I do not remember
Useless

Which of the following adjectives is used to describe the group, <%values.targetname%>?
Stinky
I do not remember
Scented

Which of the following adjectives is used to describe the group, <%values.targetname%>?
I do not remember
Cumbersome
Light and handy

Which of the following adjectives is used to describe the group, <%values.targetname%>?
Mechanical
I do not remember
Spontaneous

Which of the following adjectives is used to describe the group, <%values.targetname%>?
Deliberate
Automatic
I do not remember

Which of the following adjectives is used to describe the group, <%values.targetname%>?
Moving
Stationary
I do not remember

<block nomind_mm_check>
/ onblockbegin = [
  // randomly select 4 questions
  item nomind_mm_check;
]
/ trials = [1-4 = mm_check_trial]
</block>
By Dave - 2/18/2022

sodalin - 2/18/2022
Hi Dave, so now, I am trying to create a memory check block, to make sure that participants were paying attention when they read the descriptions. I want to randomly present 4 out of 8 multiple questions, and let participants to choose the correct answer. This is my syntax for now, I will need help on how to randomly present 4 questions, how to know participants answers the question correctly, because if they answered it incorrectly for any 1 of the 4 questions, they will need to be redirect and return back to the description block. 
I know this is a lot to ask, thanks in advance!!

------------------------------------------------------------------------------------
***MEMORY CHECK: NO MIND*****
------------------------------------------------------------------------------------
<item nomind_mm_check>
Which of the following adjectives is used to describe the group, <%values.targetname%>?
Brand-new
Worn-out
I do not remember

Which of the following adjectives is used to describe the group, <%values.targetname%>?
I do not remember
Durable
Fragile

Which of the following adjectives is used to describe the group, <%values.targetname%>?
Multi-functional
I do not remember
Useless

Which of the following adjectives is used to describe the group, <%values.targetname%>?
Stinky
I do not remember
Scented

Which of the following adjectives is used to describe the group, <%values.targetname%>?
I do not remember
Cumbersome
Light and handy

Which of the following adjectives is used to describe the group, <%values.targetname%>?
Mechanical
I do not remember
Spontaneous

Which of the following adjectives is used to describe the group, <%values.targetname%>?
Deliberate
Automatic
I do not remember

Which of the following adjectives is used to describe the group, <%values.targetname%>?
Moving
Stationary
I do not remember

<block nomind_mm_check>
/ onblockbegin = [
  // randomly select 4 questions
  item nomind_mm_check;
]
/ trials = [1-4 = mm_check_trial]
</block>

I'm sorry, but that's neither valid syntax nor is it in any way complete.