Author Topic: Double suffix - or something like it...  (Read 4245 times)

LuffeMe

  • Guest
Double suffix - or something like it...
« on: July 29, 2016, 02:54:30 PM »
Hi,
I have a double suffix question.

I think it is best asked with an example:

What is flour?
Generates: “Flour is ground wheat.”
Prefix: “what is” - Suffix: “flour”

What is flour used for?
Generates: “Flour is used for baking.”
Prefix: “what is” - Suffix: “flour” - ??? What is the definition/designation of “used for” to generate alternate response?

Keep in mind I have multiple suffix’s like sugar, eggs, milk… so flour should remain the suffix… I am trying to avoid 100 different prefixes for every ingredient to keep the profile clean.

I hope this makes sense, and that there is an easy answer.
I looked around the forum, and did not find the answer. If it is there, a pointer would be great.
I appreciate any help you can provide.

TX,
Luffe

Pfeil

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4782
  • RTFM
Re: Double suffix - or something like it...
« Reply #1 on: July 29, 2016, 03:43:35 PM »
If by "keep the profile clean" you mean not adding entries in the command list, that's doable:

Flour[ used for;]
Code: [Select]
Begin Text Compare : [{CMD}] Ends With 'used for'
    Say, 'Flour is used for baking.'
Else
    Say, 'Flour is ground wheat.'
End Condition

LuffeMe

  • Guest
Re: Double suffix - or something like it...
« Reply #2 on: July 29, 2016, 05:38:34 PM »
TX Pfeil,

Appreciate the quick response. I will give that a go... guess I have to start learning about the use of tokens ;)

Luffe