Inflection
Morphology Inflection
|
Provides a way to format a word with additional grammatical category values or semantic features of a word for a given language. More...
#include <InflectableStringConcept.hpp>
Public Member Functions | |
SpeakableString * | getFeatureValue (const SemanticFeature &feature) const override |
bool | isExists () const override |
::std::u16string | toString () const override |
SpeakableString * | toSpeakableString () const override |
InflectableStringConcept * | clone () const override |
InflectableStringConcept (const SemanticFeatureModel *model, const SpeakableString &value) | |
InflectableStringConcept (const InflectableStringConcept &other) | |
~InflectableStringConcept () override | |
![]() | |
virtual const SemanticFeatureModel * | getModel () const |
virtual const ::std::u16string * | getConstraint (const SemanticFeature &feature) const |
virtual bool | hasConstraint (const SemanticFeature &feature) const |
virtual void | putConstraint (const SemanticFeature &feature, ::std::u16string_view featureValue) |
virtual void | putConstraintByName (::std::u16string_view featureName, ::std::u16string_view featureValue) |
virtual void | clearConstraint (const SemanticFeature &feature) |
virtual void | clearConstraintByName (::std::u16string_view featureName) |
virtual void | reset () |
virtual SpeakableString * | getFeatureValueByName (::std::u16string_view featureName) const |
SemanticFeatureConceptBase (const SemanticFeatureModel *model) | |
SemanticFeatureConceptBase (const SemanticFeatureConceptBase &other) | |
~SemanticFeatureConceptBase () override | |
![]() | |
~SpeakableConcept () override | |
![]() | |
virtual ::std::u16string | toString () const |
virtual | ~Object () |
Additional Inherited Members | |
![]() | |
virtual const SemanticFeature * | getSpeakFeature () const |
![]() | |
::std::map< SemanticFeature, ::std::u16string > | constraints { } |
Provides a way to format a word with additional grammatical category values or semantic features of a word for a given language.
Definition at line 16 of file InflectableStringConcept.hpp.
inflection::dialog::InflectableStringConcept::InflectableStringConcept | ( | const SemanticFeatureModel * | model, |
const SpeakableString & | value | ||
) |
Constructs a concept given a semantic feature model and a speakable string
model | - The semantic feature model required to initialize the concept. |
value | - The speakable string to convert to a concept |
inflection::dialog::InflectableStringConcept::InflectableStringConcept | ( | const InflectableStringConcept & | other | ) |
Copy constructor
|
override |
Destructor
|
overridevirtual |
|
overridevirtual |
Returns the Speakable String representing the given semantic feature.
feature | - the semantic feature for which the value is requested. |
Implements inflection::dialog::SemanticFeatureConceptBase.
|
overridevirtual |
Implements inflection::dialog::SemanticFeatureConceptBase.
|
overridevirtual |
Converts the concept to a Speakable String
Implements inflection::dialog::SpeakableConcept.
|
override |
Return a string helpful for debugging purposes.