Page 1 of 1
"shakes" and "wiggles"
Posted: Fri Aug 16, 2019 9:55 pm
by richmond62
This:
Code: Select all
on mouseUp
if fld "TEKST" contains "shakes" & "wiggles" then
put "YUP" into fld "REZ"
else
put "NOPE" into fld "REZ"
end if
end mouseUp
ALWAYS returns "NOPE" even when fld "TEKST" contains:
"She shakes and wiggles across the stage like a snake."
This is a problem.
Re: "shakes" and "wiggles"
Posted: Fri Aug 16, 2019 11:02 pm
by SparkOut
Hi Richmond
if field "TEKST" contains "shakes" AND field "TEKST" contains "wiggles" then...
If you delve deeper you will see that what you have been asking is whether field "TEKST" contains "shakeswiggles"
"&" is a concatenator
"and" is a boolean operator.
and "wiggles" is not a valid test either, you'd need to test the condition of "wiggles" against the field the same as "shakes":
IF (boolean test A resolves to true) AND (boolean test B resolves to true) THEN...
but you can't have "wiggles" as boolean test B - well you can, but not sensibly in this context.
Re: "shakes" and "wiggles"
Posted: Sat Aug 17, 2019 12:49 pm
by richmond62
Thanks
SparkOut for a very comprehensive and easily comprehensible answer.

-
Re: "shakes" and "wiggles"
Posted: Sat Aug 17, 2019 2:27 pm
by richmond62
-
Linguists often need to work their way through
linguistic corpora to find
co-occurrences of words . . .
There are commercially available applications to do this sort of thing that cost quite a bit of money . . .
Between 26th August and 6th of September I shall be teaching an introductory course in LiveCode
to members of the Philological Faculty of the University of Plovdiv . . . an institution not noted for
having "bags of moolah" to pay for specialist software for its academics to use for their academic
research.
-
-
Re: "shakes" and "wiggles"
Posted: Sat Aug 17, 2019 3:22 pm
by richmond62
-
Obviously, because I'm a "sadistic old sausage" I will
NOT include all the code in the
stack I dole out to the students.

Re: "shakes" and "wiggles"
Posted: Sat Aug 17, 2019 8:59 pm
by richmond62
New and improved version.
-
Re: "shakes" and "wiggles"
Posted: Sun Aug 18, 2019 4:23 pm
by richmond62
Ideally . . . this stack should be built up to provide all the capabilities available
with this commercial software package:
http://www.athel.com/colloc.html
This is silly:
" Educational Price. Single user: $45
Site licence (2-year, 15 users) $395"
especially as it is a Windows-only package.
This:
https://lexically.net/downloads/version ... basics.htm
is a suite of Windows-only tools at the price of "£50 (approx. US$70-80 or €65)"
What particularly cheeses me off is the fact that neither of these offerings actually mentions
that they are Windows-only, nor which versions of Windows they will work on.