... including URL and other Internet Web site references, is subject to change. without notice. ... does not give you any license to these patents, tr
Document source : download.microsoft.com
Proofing Suite
496
Properties
name
Returns the name of the readability statistic. Read-only.
readability value
Returns the value of the grammar statistic. Read-only.
synonym info
Plural
synonym infos
Represents the information about synonyms, antonyms, related words, or related expressions for
the specified range or a given string.
To return a synonym info object, use the get synonym info object command. The synonym info
object can be returned either from a word or a phrase. You specify the lookup word or phrase and a
proofing language ID. The following example returns a synonym info object from the current
selection.
get synonym info object item to check content of selection ¬
language ID english us
The found property returns true if any information is found in the thesaurus for the specified word
or phrase. Note, however, that this property returns true not only if synonyms are found but also if
related words, related expressions, or antonyms are found.
Many of the properties of the synonym info object return a list that contains an array of strings.
When working with these properties, you can assign the returned list to a variable and then index
the variable to see the elements in the list. In the following example, sList is assigned to the
synonym list for the first meaning of the word in the current selection. The Repeat with...In
function steps through the list, and then each element is displayed in a message box.
set synInfo to get synonym info object item to check content of selection ¬
language id english us
set sList to get synonym list from synInfo meaning index 1
repeat with i in sList
display dialog i
end repeat
Summary :
synonym info Plural synonym infos Represents the information about synonyms, antonyms, related words, or related expressions for the specified range or a given string. set synInfo to get synonym info object item to check content of selection ¬ language id english us set sList to get synonym list from synInfo meaning index 1 repeat with i in sList display dialog i end repeat
Tags :
info,object,list,returns,word,found,selection,get,related,repeat,properties,slist,phrase