Inflection
Morphology Inflection
|
A single feature value with a set of constraints for when the value is valid. More...
#include <LanguageGrammarFeatures_Feature.hpp>
Public Member Functions | |
virtual std::u16string | getValue () const |
virtual std::map< std::u16string, std::u16string > | getConstraints () const |
LanguageGrammarFeatures_Feature (const std::u16string &value, const std::map< std::u16string, std::u16string > &constraints) | |
~LanguageGrammarFeatures_Feature () override | |
![]() | |
virtual ::std::u16string | toString () const |
virtual | ~Object () |
Friends | |
class | LanguageGrammarFeatures |
class | LanguageGrammarFeatures_GrammarCategory |
class | LanguageGrammarFeatures_GrammarFeatures |
A single feature value with a set of constraints for when the value is valid.
A grammatical feature is a specific word used to be in grammatical agreement with semantic concepts given a set of constraints. 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_Feature.hpp.
inflection::lang::features::LanguageGrammarFeatures_Feature::LanguageGrammarFeatures_Feature | ( | const std::u16string & | value, |
const std::map< std::u16string, std::u16string > & | constraints | ||
) |
Construct a feature by value and a mapping of constraints.
value | the name of the feature. |
constraints | The constraints that are valid for the value. This map contains grammatical category name mapped to the specific value valid for the grammatical category. |
|
override |
Destructor
|
virtual |
The constraints of grammatical categories and their values to choose this value.
|
virtual |
The value to use given the constraints.
|
friend |
Definition at line 56 of file LanguageGrammarFeatures_Feature.hpp.
|
friend |
Definition at line 57 of file LanguageGrammarFeatures_Feature.hpp.
|
friend |
Definition at line 58 of file LanguageGrammarFeatures_Feature.hpp.