Page 1 of 1

Between the sheets

Posted: Fri Sep 06, 2019 9:29 am
by richmond62
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.'
-
coffee.jpeg
coffee.jpeg (9.32 KiB) Viewed 1828 times

Re: Between the sheets

Posted: Fri Sep 06, 2019 9:47 am
by Klaus
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