Jane Austen's peculiarity

Richard Gaskin ambassador at fourthworld.com
Sat Aug 8 18:41:42 EDT 2015


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, wouldn't that be 
"wordOffset" (singular)?

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.

-- 
  Richard Gaskin
  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 mailing list