Wolfram Research

Function Repository Resource:

NounQ

Source Notebook

Check if a word is a noun

Contributed by: Arnoud Buzing

ResourceFunction["NounQ"][word]

gives True if word can be used as a noun and False otherwise.

Details and Options

The result is True if any definition of word is a noun.

Examples

Basic Examples

Check if a word is a noun:

In[1]:=
ResourceFunction["NounQ"]["baseball"]
Out[1]=
In[2]:=
ResourceFunction["NounQ"]["happy"]
Out[2]=

Applications

Find how many words in an article can be used as nouns:

In[3]:=
Counts[ResourceFunction["NounQ"] /@ TextWords[WikipediaData["Noun"]]]
Out[3]=

Requirements

Wolfram Language 11.3 (March 2018) or above

Resource History

License Information