Student

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
LasV
Posts: 6
Joined: Mon Apr 13, 2015 8:05 pm

Student

Post 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
richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10415
Joined: Fri Feb 19, 2010 10:17 am

Re: Student

Post 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 227 times
LasV
Posts: 6
Joined: Mon Apr 13, 2015 8:05 pm

Re: Student

Post 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
Post Reply