Inflection
Morphology Inflection
Loading...
Searching...
No Matches
Public Member Functions | Friends | List of all members
inflection::lang::features::LanguageGrammarFeatures_Feature Class Reference

A single feature value with a set of constraints for when the value is valid. More...

#include <LanguageGrammarFeatures_Feature.hpp>

+ Inheritance diagram for inflection::lang::features::LanguageGrammarFeatures_Feature:

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
 
- Public Member Functions inherited from inflection::Object
virtual ::std::u16string toString () const
 
virtual ~Object ()
 

Friends

class LanguageGrammarFeatures
 
class LanguageGrammarFeatures_GrammarCategory
 
class LanguageGrammarFeatures_GrammarFeatures
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ LanguageGrammarFeatures_Feature()

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.

Parameters
valuethe name of the feature.
constraintsThe constraints that are valid for the value. This map contains grammatical category name mapped to the specific value valid for the grammatical category.

◆ ~LanguageGrammarFeatures_Feature()

inflection::lang::features::LanguageGrammarFeatures_Feature::~LanguageGrammarFeatures_Feature ( )
override

Destructor

Member Function Documentation

◆ getConstraints()

virtual std::map< std::u16string, std::u16string > inflection::lang::features::LanguageGrammarFeatures_Feature::getConstraints ( ) const
virtual

The constraints of grammatical categories and their values to choose this value.

◆ getValue()

virtual std::u16string inflection::lang::features::LanguageGrammarFeatures_Feature::getValue ( ) const
virtual

The value to use given the constraints.

Friends And Related Symbol Documentation

◆ LanguageGrammarFeatures

friend class LanguageGrammarFeatures
friend

Definition at line 56 of file LanguageGrammarFeatures_Feature.hpp.

◆ LanguageGrammarFeatures_GrammarCategory

Definition at line 57 of file LanguageGrammarFeatures_Feature.hpp.

◆ LanguageGrammarFeatures_GrammarFeatures

Definition at line 58 of file LanguageGrammarFeatures_Feature.hpp.


The documentation for this class was generated from the following file: