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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top