Get the word class

K

K

I would appreciate help in this matter.

I wonder how you can get the word class (part-of-speech tag) for one word,
or all words. I understand it must exist since it's used in grammar checking.

Is this also possible both through VBA and Javascript?

I am using Word 2002, Swedish version.

Best regards,
K
 
S

Shauna Kelly

Hi K

Word does not expose any functionality that will tell you whether the
selected word is, say, a noun or an adjective. Word may be able to determine
that information internally and use it, as you say, in the grammar checker.
But it is not exposed in the object model.

Hope this helps.

Shauna Kelly. Microsoft MVP.
http://www.shaunakelly.com/word
 
Top