PDA

View Full Version : Solved: MS Word Dictionary



talhamoin
02-16-2011, 03:04 AM
Is there a way to use ms word dictionary in VBA and determine if a particular word is verb/noun.

I am familiar with the problem that in "he is running" and "running is good for health" has running as verb in first sentence and then as noun in 2nd sentence.

I just want to go through a document and use ms word dictionary (default or custom) to determine whether a word is adjective, noun or verb.

macropod
02-25-2011, 04:47 AM
Hi talhamoin,

In a word, no. The dictionary cannot tell you what part of grammar a word is. Many english-language words can change from part of speech to another depending on the context. Consider:
"He said that that 'that' that that man used was wrong."
In the preceding sentence, that functions as a conjunction, adjective and noun. Or how about:
"Fly damn fly!"

talhamoin
03-07-2011, 09:46 AM
Thanks macropod. You are right. The workaround that was discussed with the person giving me this project was that the user will be prompted with options to select part of speech for a particular word if the word can fall in more than 2 categories.