检查特定单词是名词还是动词 [英] Checking whether a particular word is a noun or verb

查看:39
本文介绍了检查特定单词是名词还是动词的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图用 Microsoft Word 作弊(使用 vba 代码)for pump((油泵)是名词还是动词根据微软的说法,它是动词(实际上泵是名词)我需要检查它的单词列表(主要是技术性的)是否可以与任何数据库进行比较?

I tried to cheak with Microsoft Word (using vba code) for pump ((oil pump) whether it is a noun or verb according to Microsoft word it is verb ( actually pump is a noun) I need to check it for a list of words (mostly technical) Is it possible to compare to any database?

还有什么?

推荐答案

我认为这里唯一的答案是它无法完成".

I think the only answer here is "It can't be done".

即使有上下文,在某些情况下您也需要人工解释来确定字词类型.

Even with context, you'd need human interpretation to determine the word type in some cases.

时间像箭一样飞逝.

这可能意味着时间过得很快.在这种情况下,

It can mean that time passes very quickly. In that case,

时间(名词)像箭一样飞(动词)(介词短语).

Time (noun) flies (verb) like an arrow (prepositional phrase).

或者可能意味着一群昆虫偏爱尖尖的东西

Or it can mean that a group of insects have a preference for pointy things

时间飞逝(复合名词)就像(动词)箭头(名词作为对象).

Time flies (compound noun) like (verb) an arrow (noun as an object).

或者建议用与箭头相同的方式测量昆虫的速度.

Or it can be a suggestion to measure the speed of insects in the same way an arrow does.

时间(动词)像箭一样飞(名词)(介词短语).

Time (verb) flies (noun) like an arrow (prepositional phrase).

Merriam Webster Learner's Dictionary 有七种可能的like"词类型:动词、名词,介词,形容词,名词(是的,再次,但有另一个含义),副词,连词.其中每一个都有几个子类别,用于稍微不同的用例.他们甚至没有提到青少年使用(我真的很喜欢,他就像是的......")

The Merriam Webster Learner's Dictionary has seven possible word types for "like": verb, noun, preposition, adjective, noun (yes, again, but with another meaning), adverb, conjunction. Each of these has several sub-categories for slightly different use cases. And they don't even mention the teenager use ("And I'm like REALLY, and he's like YES...")

词典条目(不是 MS Word 拼写词典,而是解释用法和含义的参考资料)如此复杂的原因是语言很复杂.

The reason that dictionary entries (not the MS Word spelling dictionary, but references that explain the use and meaning) are so complex is that language is complex.

写一些VBA,扔一些RegEx,判断词类没有错是不可能的.

It is impossible to write some VBA, throw in some RegEx and determine the word class without fault.

这篇关于检查特定单词是名词还是动词的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆