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 ____________________________________________________________________ ambassa...@fourthworld.com http://www.FourthWorld.com _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode