Re: Jane Austen's peculiarity

2015-09-12 Thread Richmond
I am wondering whether this is a relevant point or not,but, here goes anyway: I am looking for occurrences of BE + Past Participle in on-passive, intransitive constructions, with examples such as: *I am arrived*, *He is become*, *She is returned* in publicly available versions of English

Re: Jane Austen's peculiarity

2015-08-12 Thread BNig
Hi Richmond, in LC 7 you can use sentence as a text unit. Since sentence seems your context it is tempting to use that here is an adaption of the is/was handler returning the sentence number and the sentence Easy to read, easy to maintain and reasonably fast. Just paste the code into a copy of

Re: Jane Austen's peculiarity

2015-08-11 Thread Richmond
On 10/08/15 23:51, hh wrote: Richmond, this was your last post to this thread before mine. My current version is here: https://www.dropbox.com/sh/ja47l87gg87sn0q/AAAIj99kEQVOb8ev3jz8C5ORa?dl=0 File : TA.zip play with it, rip it to pieces, improve it: go on, I dare you :) Richmond. So I

Re: Jane Austen's peculiarity

2015-08-11 Thread James Hale
Of course I couldn't resist a tinker. I too am into text manipulation/searching and wondered how I would go about this. I looked at the repeat loops and realised they would run much faster if they were inverted as I am sure the list of verbs would be less than the lines of text being searched.

Re: Jane Austen's peculiarity

2015-08-11 Thread Richmond
On 11/08/15 17:31, James Hale wrote: snip This means none of the proposed solutions (including Richmond's own) will find the desired phrase if it falls across one of these line breaks. snip Wow! Very valuable point: thanks. Richmond. ___

Re: Jane Austen's peculiarity

2015-08-10 Thread hh
Hi all, Richmond, you could give this a try in your fine prepared stack: The following uses = an array [one of the proposals above] = trueWords [one of the proposals, needs LC 7] = multichar-itemDelimiters [one of the proposals above, needs LC 7] It outputs for each of your 6 opening words were

Re: Jane Austen's peculiarity

2015-08-10 Thread hh
Richmond, this was your last post to this thread before mine. My current version is here: https://www.dropbox.com/sh/ja47l87gg87sn0q/AAAIj99kEQVOb8ev3jz8C5ORa?dl=0 File : TA.zip play with it, rip it to pieces, improve it: go on, I dare you :) Richmond. So I downloaded this stack and

Re: Jane Austen's peculiarity

2015-08-10 Thread Richmond
On 10/08/15 22:19, hh wrote: Hi all, Richmond, you could give this a try in your fine prepared stack: The following uses = an array [one of the proposals above] = trueWords [one of the proposals, needs LC 7] = multichar-itemDelimiters [one of the proposals above, needs LC 7] It outputs for

Re: Jane Austen's peculiarity

2015-08-10 Thread Richmond
My current version is here: https://www.dropbox.com/sh/ja47l87gg87sn0q/AAAIj99kEQVOb8ev3jz8C5ORa?dl=0 File : TA.zip play with it, rip it to pieces, improve it: go on, I dare you :) Richmond. ___ use-livecode mailing list

Re: Jane Austen's peculiarity

2015-08-10 Thread Richmond
On 09/08/15 23:03, Richard Gaskin wrote: Richmond wrote: Just by loading the textFields into variables the whole script runs considerably faster If you did the same with the output it'd get even faster. Hmm: on mouseUp put empty into fld COOKED put empty into fld STARTT put empty

Re: Jane Austen's peculiarity

2015-08-09 Thread Richmond
Call my code clunky, clumsy and slow, and that won't really fuss me: BUT what does fuss me is why this produces NO results when it analyses a text imported from an RTF file, BUT does work when the text is either manually edited or imported from a text file. on mouseUp put empty into fld

Re: Jane Austen's peculiarity

2015-08-09 Thread hh
To come back to Richmond's opening post, one could think about using the following, avoiding complex offset constructions. First collect word 1 of each item of a string (not too large, size adapted to your machine), where the itemdelimiter is were or any other word (conditional) that filters a

Re: Jane Austen's peculiarity

2015-08-09 Thread Richmond
On 09/08/15 16:47, Peter M. Brigham wrote: On Aug 9, 2015, at 8:46 AM, Richmond wrote: BUT what does fuss me is why this produces NO results when it analyses a text imported from an RTF file, BUT does work when the text is either manually edited or imported from a text file. Maybe if you do

Re: Jane Austen's peculiarity

2015-08-09 Thread Richmond
On 09/08/15 19:21, Richard Gaskin wrote: Richmond wrote: Now, if you happen to know of a list of English intransitive verbs . . . . https://en.wiktionary.org/wiki/Category:English_intransitive_verbs Yes: I looked there: but I am a lazy toad, and the thought of typing all those words into a

Re: Jane Austen's peculiarity

2015-08-09 Thread Peter M. Brigham
On Aug 9, 2015, at 8:46 AM, Richmond wrote: BUT what does fuss me is why this produces NO results when it analyses a text imported from an RTF file, BUT does work when the text is either manually edited or imported from a text file. Maybe if you do this? set the RTFtext of the

Re: Jane Austen's peculiarity

2015-08-09 Thread Richard Gaskin
Richmond wrote: Now, if you happen to know of a list of English intransitive verbs . . . . https://en.wiktionary.org/wiki/Category:English_intransitive_verbs There's also WordNet, but while it does include word sense I don't recall if it gets as specific as to the type of verb. Besides,

Re: Jane Austen's peculiarity

2015-08-09 Thread Richmond
On 09/08/15 16:52, Richmond wrote: On 09/08/15 16:47, Peter M. Brigham wrote: On Aug 9, 2015, at 8:46 AM, Richmond wrote: BUT what does fuss me is why this produces NO results when it analyses a text imported from an RTF file, BUT does work when the text is either manually edited or imported

Re: Jane Austen's peculiarity

2015-08-09 Thread Richmond
snip However, I'm doing just fine with HTML text instead :) snip Well . . . the stack works, but as I have not loaded the whole text to be analysed into a variable, but am doing it line by line, the whole thing is taking far, far too long . . . What this does at least prove (P.

Re: Jane Austen's peculiarity

2015-08-09 Thread Richmond
Just by loading the textFields into variables the whole script runs considerably faster: on mouseUp put empty into fld COOKED put the long time into fld STARTT put 1 into KTEKST put 1 into KCOOK put fld TEKST into TEKST -- put fld WERBS into WERBS -- repeat until

Re: Jane Austen's peculiarity

2015-08-09 Thread Richmond
On 09/08/15 23:03, Richard Gaskin wrote: Richmond wrote: Just by loading the textFields into variables the whole script runs considerably faster If you did the same with the output it'd get even faster. Aha. Richmond. ___ use-livecode mailing

Re: Jane Austen's peculiarity

2015-08-09 Thread Richard Gaskin
Richmond wrote: Just by loading the textFields into variables the whole script runs considerably faster If you did the same with the output it'd get even faster. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web

Re: Jane Austen's peculiarity

2015-08-09 Thread Michael Doub
Richmond, Just so you know what is going on. Each time a change in made to a field, a lot of management code is executed to properly render the field in case it is needed to be visible. So when a field is modified within a loop, that field management code is executed over and over. When

Re: Jane Austen's peculiarity

2015-08-09 Thread dunbarx
Hermann. You are back. So glad... Craig -Original Message- From: hh h...@livecode.org To: use-livecode use-livecode@lists.runrev.com Sent: Sun, Aug 9, 2015 2:15 pm Subject: Re: Jane Austen's peculiarity To come back to Richmond's opening post, one could think about using

Re: Jane Austen's peculiarity

2015-08-09 Thread Richmond
On 10/08/15 02:54, Michael Doub wrote: Richmond, Just so you know what is going on. Each time a change in made to a field, a lot of management code is executed to properly render the field in case it is needed to be visible. So when a field is modified within a loop, that field management

Re: Jane Austen's peculiarity

2015-08-08 Thread Peter M. Brigham
On Aug 8, 2015, at 12:42 PM, Richmond wrote: Jane Austen [amongst others] uses an interesting type of grammatical construction of this sort: After breakfast, the girls walked to Meryton to inquire if Mr. Wickham _were returned_, and to lament over his absence from the Netherfield ball.

Re: Jane Austen's peculiarity

2015-08-08 Thread Richmond
On 08/08/15 20:48, Peter M. Brigham wrote: On Aug 8, 2015, at 12:42 PM, Richmond wrote: Jane Austen [amongst others] uses an interesting type of grammatical construction of this sort: After breakfast, the girls walked to Meryton to inquire if Mr. Wickham _were returned_, and to lament over

Re: Jane Austen's peculiarity

2015-08-08 Thread Peter M. Brigham
On Aug 8, 2015, at 1:56 PM, Richmond wrote: On 08/08/15 20:48, Peter M. Brigham wrote: On Aug 8, 2015, at 12:42 PM, Richmond wrote: Jane Austen [amongst others] uses an interesting type of grammatical construction of this sort: After breakfast, the girls walked to Meryton to inquire if

Re: Jane Austen's peculiarity

2015-08-08 Thread Richmond
On 08/08/15 21:18, Peter M. Brigham wrote: On Aug 8, 2015, at 1:56 PM, Richmond wrote: On 08/08/15 20:48, Peter M. Brigham wrote: On Aug 8, 2015, at 12:42 PM, Richmond wrote: Jane Austen [amongst others] uses an interesting type of grammatical construction of this sort: After breakfast,

Re: Jane Austen's peculiarity

2015-08-08 Thread Richmond
I seem to be going wrong: I have a fld WERBS containing: found returned become and my test to be analysed in a fld TEKST: My Dad ate cheese. My Mum and Dad were returned home when it began to rain. He had a house in Spain.

Re: Jane Austen's peculiarity

2015-08-08 Thread Paul Looney
Richmond, The key here is the “if” - which creates a conditional clause - which requires the past plural of the verb (in this case “were”). This is similar to the “wenn clause in German (Deutsch) and the “ut” clause in Latin. If I were able, I’d thank you in person for mentioning this. Paul

Re: Jane Austen's peculiarity

2015-08-08 Thread Richmond
On 08/08/15 22:56, Paul Looney wrote: Richmond, The key here is the “if” - which creates a conditional clause - which requires the past plural of the verb (in this case “were”). This is similar to the “wenn clause in German (Deutsch) and the “ut” clause in Latin. If I were able, I’d thank you

Re: Jane Austen's peculiarity

2015-08-08 Thread Paul Looney
In your last example: Mr. Rushworth _was returned_” “was returned” (singular, past tense, passive) is correct (although a simple “returned” would have been more powerful). There is no conditional, no “if”; as in your first example: to inquire if Mr. Wickham_were returned_, Haven’t had this

Re: Jane Austen's peculiarity

2015-08-08 Thread Peter M. Brigham
On Aug 8, 2015, at 3:41 PM, Richmond wrote: I seem to be going wrong: I have a fld WERBS containing: found returned become and my test to be analysed in a fld TEKST: My Dad ate cheese. My Mum and Dad were returned home when it began to

Re: Jane Austen's peculiarity

2015-08-08 Thread Richmond
On 08/08/15 23:33, Peter M. Brigham wrote: On Aug 8, 2015, at 3:41 PM, Richmond wrote: I seem to be going wrong: I have a fld WERBS containing: found returned become and my test to be analysed in a fld TEKST: My Dad ate cheese. My Mum and Dad were returned home

Re: Jane Austen's peculiarity

2015-08-08 Thread Richmond
On 08/08/15 23:23, Paul Looney wrote: In your last example: Mr. Rushworth _was returned_” “was returned” (singular, past tense, passive) I'm not sure if that is a passive, or an older form of the past perfect (= had returned) ??? is correct (although a simple “returned” would have been

Re: Jane Austen's peculiarity

2015-08-08 Thread Richmond
On 08/08/15 23:33, Peter M. Brigham wrote: snip Missing an of in the two lines above: put line textLine *of* $TEKST into line cookedLine of fld COOKED etc Don't know if that's the problem. snip Your script logic seems unnecessarily complex. Since it looks as if only the last occurrence

Re: English usage [OT] (used to be Re: Jane Austen's peculiarity)

2015-08-08 Thread Peter M. Brigham
On Aug 8, 2015, at 4:44 PM, Richmond wrote: On 08/08/15 23:23, Paul Looney wrote: In your last example: Mr. Rushworth _was returned_” “was returned” (singular, past tense, passive) I'm not sure if that is a passive, or an older form of the past perfect (= had returned) ??? I believe

Re: English usage [OT] (used to be Re: Jane Austen's peculiarity)

2015-08-08 Thread Richmond
On 08/08/15 23:59, Peter M. Brigham wrote: On Aug 8, 2015, at 4:44 PM, Richmond wrote: On 08/08/15 23:23, Paul Looney wrote: In your last example: Mr. Rushworth _was returned_” “was returned” (singular, past tense, passive) I'm not sure if that is a passive, or an older form of the past

Re: Jane Austen's peculiarity

2015-08-08 Thread Peter M. Brigham
On Aug 8, 2015, at 4:51 PM, Richmond wrote: On 08/08/15 23:33, Peter M. Brigham wrote: snip Missing an of in the two lines above: put line textLine *of* $TEKST into line cookedLine of fld COOKED etc Don't know if that's the problem. snip Your script logic seems unnecessarily

Re: Jane Austen's peculiarity

2015-08-08 Thread Richmond
On 09/08/15 00:26, Peter M. Brigham wrote: On Aug 8, 2015, at 4:51 PM, Richmond wrote: On 08/08/15 23:33, Peter M. Brigham wrote: snip Missing an of in the two lines above: put line textLine *of* $TEKST into line cookedLine of fld COOKED etc Don't know if that's the problem. snip Your

Re: Jane Austen's peculiarity

2015-08-08 Thread Richmond
on mouseUp put fld TEKST into TEKST put fld WERBS into WERBS put findWere(TEKST) into linesList repeat for each item i in linesList put line i of TEKST cr after relevantLines end repeat put char 1 to -2 of relevantLines into fld COOKED end mouseUp function findWere pText --

Re: Jane Austen's peculiarity

2015-08-08 Thread Richmond
Oddly enough this does NOT seem to be a problem with my counters. If I reorder my verbList the stack still only finds text bits with 'found'. Retyping the list (rather than importing it from RTF) the first occurrence of the first verb in the list results. There seems to be a problem with the

Re: Jane Austen's peculiarity

2015-08-08 Thread Richard Gaskin
Richmond wrote: function findWere pText -- returns a comma-delim list of all the line offsets matching were *ed --or were a word in your preterite list. put fld WERBS into pretList put wordOffsets(were, pText, true) into offList Unless the build you're using a custom build,

Re: Jane Austen's peculiarity

2015-08-08 Thread Alex Tweedly
I think I'd agree that a conditional clause should be equired (could it be any of 'if', 'unless', 'whether', ...)? Otherwise, you'd be finding false positives like: I gave two shillings to my brother and last night they _were returned_ to me. -- Alex. On 08/08/2015 20:56, Paul Looney

Re: Jane Austen's peculiarity

2015-08-08 Thread Peter M. Brigham
On Aug 8, 2015, at 6:41 PM, Richard Gaskin wrote: Richmond wrote: function findWere pText -- returns a comma-delim list of all the line offsets matching were *ed --or were a word in your preterite list. put fld WERBS into pretList put wordOffsets(were, pText, true) into

Re: Jane Austen's peculiarity

2015-08-08 Thread Peter M. Brigham
On Aug 8, 2015, at 5:44 PM, Richmond wrote: executing at 12:43:43 AM TypeFunction: error in function handler ObjectBrigham Lineput wordOffsets(were, pText, true) into offList HintwordOffsets Probably you didn't include the wordOffsets() handler from my post earlier