noun
Purpose
The function is used to search for nouns. It duplicates the functionality of the functions lemma(), stem(), form(), partofspeech() allowing to write a query in a more concise way.
Arguments
The function accepts single argument. When used without arguments, the function matches any noun.
The function accepts the same optional named parameters as the functions lemma(), stem(), form(), partofspeech().
One can also specify only a grammatical value as an argument:
Grammatical Value |
Synonym |
Description |
examples |
singular |
sing, sg |
matches singular number words |
event, conference, he, she, I … |
plural |
plur, pl |
matches plural number words |
events, conferences, they … |
masculine |
masc |
matches masculine gender words |
man, men, uncle… |
feminine |
femn |
matches aunt, Julia, Julia’s … |
nominative |
nomn |
matches nominative case words |
event, events, Julia, John … |
genitive |
gent |
matches genitive case words |
event’s, Julia’s, John’s … |
accusative |
acc |
matches accusative case words |
me, her … |
animate |
anim |
matches animate nouns |
Julia, Julia’s, man, men, John, John’s … |
inanimate |
inan |
matches inanimate nouns |
event, conferences… |
proper |
It is possible to specify multiple optional named parameters to specify a search, using an underscore "_" (AND) or vertical bar symbol "|" (OR).
Examples
noun() = lemma(noun) matches all nouns in the text.
noun(singular) matches all singular nouns.
noun(singular, book) = partofspeech(noun_singular, book) matches all occurrences of the singular form of the word "book".
noun(singular, book, head) = partofspeech(noun_singular, book, head) matches all occurrences of the singular form of the words "book" and "head".
noun(singular|animate) = partofspeech(noun_singular|noun_animate) matches all occurrences of singular or animate nouns.