Jane Austen's peculiarity
ambassador at fourthworld.com
Sun Aug 9 00:41:42 CEST 2015
> 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, wouldn't that be
Also, if you're using v7 you might consider "trueWordOffset", which
accounts for quote characters and omits punctuation that characterize
the historic definition of "word" in xTalks.
The Unicode libraries in v7 make many natural-language parsing tasks
much simpler - there's even a new "sentence" chunk type.
Fourth World Systems
Software Design and Development for the Desktop, Mobile, and the Web
Ambassador at FourthWorld.com http://www.FourthWorld.com
More information about the use-livecode