Page 1 of 1

Student

Posted: Sun May 10, 2015 1:39 am
by LasV
Hi
I am learning how to make sentences from grouped words
For example if I have 5 fields (subject, verb, noun, article, punctuations) with list of words in each field, I want to then be able to click on one word from each and create a sentence

I also want to learn the scripts for capitalizing the beginning of my sentences by changing the first letter of the first clicked word.


Any help/hint you can provide is appreciated
Thanks

Re: Student

Posted: Sun May 10, 2015 6:33 pm
by richmond62
Here's a very simple stack (10 minutes' work) that I just put together.

ALL it does is use a SWITCH structure (check that in the documentation) to capitalise letters that are clicked on.

I do think that expecting to build a stack that constructs coherent English sentences from fields containing parts of speech is a hugely ambitious (and probably impossible)
task as LIveCode is a programming environment that is only as intelligent as the computer on which it is working; and NO computer can construct adequate human language.

I, perhaps, should point out that, in the light of the remark above, I hold a Master's degree in Linguistics.
vocables.zip
(923 Bytes) Downloaded 182 times

Re: Student

Posted: Mon May 11, 2015 4:38 am
by LasV
Thank you for your help.

As with constructing a sentence,I was able to build the game that looks like MadLips in which the words are selected randomly from a field to create a sentence. That is fine but I want they user to be able to click the words (subjects, verbs etc.) from a list in fields and create sentence. I will have to try harder:)

Thanks,
Again