Generate Inflectional Variants - Specifying Output Categories and Inflections
The inflection operation can be qualified to restrict output category and inflection by specifying the category bit vector and the inflection bit vector.
The category values can be OR'ed from the following values:
Category | Value |
adj | 1 |
adv | 2 |
aux | 4 |
compl | 8 |
conj | 16 |
det | 32 |
modal | 64 |
noun | 128 |
prep | 256 |
pron | 512 |
verb | 1024 |
all | 2047 |
The inflection values can be OR'ed from the following values:
Inflection | Value |
base | 1 |
comparative | 2 |
superlative | 4 |
plural | 8 |
presPart | 16 |
past | 32 |
pastPart | 64 |
pres3 | 128 |
positive | 256 |
singular | 512 |
infinitive | 1024 |
pres123p | 2048 |
pastNeg | 4096 |
pres123pNeg | 8192 |
pres1s | 16384 |
past1p23pNeg | 32768 |
past1p23p | 65536 |
past1s3sNeg | 131072 |
pres1p23p | 262144 |
pres1p23pNeg | 524288 |
past1s3s | 1048576 |
pres | 2097152 |
pres3sNeg | 4194304 |
presNeg | 8388608 |
all | 16777215 |
In some domains, nouns are the vast majority of terms in the vocabulary. Furthermore, for terms which can be interpreted as either nouns or as some other categories, the noun sense is much more likely. Under these circumstances, one might want to restrict one's output to nouns and ignore the other senses of words. Further, many indexing vocabularies have nouns in their plural form rather than in their singular form, so one might want to restrict one's output to plural nouns.
Users may input "all" instead of "2047" or "16777215" to represent all categories or all inflections, respectively. For instance, users may construct command such as "-f:ici~128+all" to get all inflectional variants for all nouns (including all inflections).
The results are sorted as in inflection flow component. It is sorted by the frequency of category, length, and case insensitive alphabetical order.
If the -m flag is specified, two types of possible information may be appended to the outputs. The formats of possible information are:
shell> lvg -f:ici~128+8 -m elderly elderly|elderly|128|8|ici|1|FACT|elderly|noun|base|elderly|noun|plural|E0024667| elderly|elderlies|128|8|ici|1|FACT|elderly|noun|base|elderlies|noun|plural|E0024667| leaf leaf|leafs|128|8|ici|1|FACT|leaf|noun|base|leafs|noun|plural|E0037070| leaf|leaves|128|8|ici|1|FACT|leaf|noun|base|leaves|noun|plural|E0037070| neoplasm neoplasm|neoplasms|128|8|ici|1|FACT|neoplasm|noun|base|neoplasms|noun|plural|E0042193| shell> lvg -f:ici~128+all -m neoplasm neoplasm|neoplasm|128|1|ici|1|FACT|neoplasm|noun|base|neoplasm|noun|base|E0042193| neoplasm|neoplasm|128|512|ici|1|FACT|neoplasm|noun|base|neoplasm|noun|singular|E0042193| neoplasm|neoplasms|128|8|ici|1|FACT|neoplasm|noun|base|neoplasms|noun|plural|E0042193| shell> lvg -f:ici~all+8 -m neoplasm neoplasm|neoplasms|128|8|ici|1|FACT|neoplasm|noun|base|neoplasms|noun|plural|E0042193| left left|left|128|8|ici|1|FACT|left|noun|base|left|noun|plural|E0037124| left|lefts|128|8|ici|1|FACT|left|noun|base|lefts|noun|plural|E0037124|More examples