Inflection
Morphology Inflection
|
A named feature with a possible set of feature values. More...
#include <LanguageGrammarFeatures_GrammarFeatures.hpp>
Public Member Functions | |
std::u16string | getName () const |
std::vector<::inflection::lang::features::LanguageGrammarFeatures_Feature > | getValues () const |
std::weak_ordering | operator<=> (const LanguageGrammarFeatures_GrammarFeatures &other) const |
~LanguageGrammarFeatures_GrammarFeatures () override | |
![]() | |
virtual ::std::u16string | toString () const |
virtual | ~Object () |
Protected Member Functions | |
LanguageGrammarFeatures_GrammarFeatures (const std::u16string &name, const std::vector<::inflection::lang::features::LanguageGrammarFeatures_Feature > &values) | |
Friends | |
class | LanguageGrammarFeatures |
A named feature with a possible set of feature values.
Grammatical features are usually a set of possible words that need to be in grammatical agreement with semantic concepts. Frequently they are articles, prepositions and measure words. These values are typically based (constrained) on the grammatical category values of the nouns.
Definition at line 19 of file LanguageGrammarFeatures_GrammarFeatures.hpp.
|
protected |
Construct a grammar features with name, and values.
name | The name of the grammar features. |
values | The list of features. |
|
override |
Destructor
std::u16string inflection::lang::features::LanguageGrammarFeatures_GrammarFeatures::getName | ( | ) | const |
The name of the grammatical feature.
std::vector<::inflection::lang::features::LanguageGrammarFeatures_Feature > inflection::lang::features::LanguageGrammarFeatures_GrammarFeatures::getValues | ( | ) | const |
If this feature is bounded, these are the valid values.
std::weak_ordering inflection::lang::features::LanguageGrammarFeatures_GrammarFeatures::operator<=> | ( | const LanguageGrammarFeatures_GrammarFeatures & | other | ) | const |
String compares the order of the name.
other | The object to be compared with this. |
|
friend |
Definition at line 60 of file LanguageGrammarFeatures_GrammarFeatures.hpp.