I have a corpus of sentences of this sort:
She drinks coffee at night.
He drinks tea at night, but occasionally coffee.
We, at night, often drink coffee.
Looking through the window she saw her father drinking: this, at first perturbed her,
until she realised it was not vodka but coffee.
And I am interested in how, relatively easily, one could calculate the number of words
in each sentence between the words 'drink' and 'coffee.'
-
Between the sheets
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
-
- Livecode Opensource Backer
- Posts: 10099
- Joined: Fri Feb 19, 2010 10:17 am
Re: Between the sheets
Hi Richmond,
use "wordoffset" or even "truewordoffset" for "drink" and "coffee".
First check if the offset of "drink" is lower than "coffee" and then you can calculate
the number or word between them, I'm sure you will manage that one.
Best
Klaus
use "wordoffset" or even "truewordoffset" for "drink" and "coffee".
First check if the offset of "drink" is lower than "coffee" and then you can calculate
the number or word between them, I'm sure you will manage that one.

Best
Klaus