Keyword Interface
version 8 by Aaron Reed
Section - Rule for object keywording something
Rule for object keywording something (called item) (this is the Keyword Interface object keywording rule):
if object keyword highlighting is false or item is keywordless:
say the printed name of item;
continue the action;
let output be indexed text;
now output is the printed name of item;
let kw be indexed text;
now kw is the keyword of item;
if kw is "", now kw is word number ( the number of words in output ) in output;
repeat with wordcounter running from 1 to the number of words in output:
say "[if wordcounter > 1] [end if]";
if word number wordcounter in output matches the regular expression "\b(?i)[kw]":
say "[o][word number wordcounter in output][x]";
else:
say "[word number wordcounter in output]".