stem

Purpose

Finds all possible word forms. The stem() function takes words and phrases in any form as its argument.

Syntax

stem([grammatical_value,]term,…​)

Arguments

The first optional argument grammatical_value indicates required part-of-speech and accepts one of the values below:

part-of-speech

synonym

description

examples

noun

matches nouns

event, events, conference, conferences …​

verb

matches verbs

talk, talked, talks, meets …​

adverb

advb

matches adverbs

well, generally, above …​

adjective

adjc

matches adjectives

quick, important, general …​

particle

prcl

matches particles

not, the …​

pronoun

pron

matches pronouns

they, you, she, himself, me, her …​

numeral

nmrl

matches numerals

one, hundred …​

article

arcl

matches articles

a, an, the …​

preposition

prep

matches prepositions

of, to, in, at …​

interjection

intj

matches interjections

uh, wow …​

conjunction

conj

matches conjunctions

and, if …​

The parameter can also specify one or more additional grammatical values such as number, gender, tense, voice, etc. The most frequently-used grammatical values are listed below (full list of supported grammatical values is available on "Info" tab of the "Text Tagger" node):

grammatical value

synonym

description

examples

singular

sing, sg

matches singular words

event, conference, he, she, I …​

plural

plur, pl

matches plural words

events, conferences, they …​

masculine

masc

matches masculine gender words

man, men, John, John’s, he, himself …​

feminine

femn

matches feminine gender words

woman, women, 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 or pronouns

Julia, Julia’s, man, men, John, John’s …​

inanimate

inan

matches inanimate nouns or pronouns

event, conferences, it …​

proper

matches proper nouns

London, Julia, Julia’s, John, John’s …​

comparative

matches comparative adjectives

better, easier …​

superlative

matches superlative adjectives

best, easiest …​

participle

vprt

matches participles

doing, done …​

modal

modl

matches modal verbs

can …​

…​

Grammatical values should be concatenated via underscores:

stem(noun_animate_singular) matches all animate nouns in singular number only

Grammatical values can be concatenated in arbitrary order:

stem(noun_animate_singular) = stem(noun_singular_animate) = stem(singular_noun_animate), etc.

Parameter values can be also combined via "|" operator:

stem(noun|verb) matches all nouns or verbs.

If the grammatical value is specified, arguments can be omitted. In this case function matches all tokens with a required grammatical value.

Returned Value

Documents matching the query.

Examples

stem(building) matches building, buildings, build, built, builds

stem(noun, building) matches building, buildings.

stem(noun_singular, building) matches building.

stem(noun_plural) matches all plural nouns.

stem(verb) matches all verbs.