A ULDerivation object stores a complete morphological derivation of a word. For example, the derivation of the word "bakers" would consist of the word "bake [verb]" plus two inflection rules, one that transforms a verb into a noun by adding an "-er" suffix, and the other that transforms a singular noun into a plural noun.  
 More...
#include <ulderivation.h>
A ULDerivation object stores a complete morphological derivation of a word. For example, the derivation of the word "bakers" would consist of the word "bake [verb]" plus two inflection rules, one that transforms a verb into a noun by adding an "-er" suffix, and the other that transforms a singular noun into a plural noun. 
- Enumerator: 
- 
| Speculative |  |  | Verified |  |  | Invalid |  |  
 
 
 
      
        
          | ULDerivation::ULDerivation | ( |  | ) |  | 
      
 
 
      
        
          | ULDerivation::~ULDerivation | ( |  | ) |  | 
      
 
 
      
        
          | void ULDerivation::addFeature | ( | const ULFeatureType & | featureType, | 
        
          |  |  | int | featureValue | 
        
          |  | ) |  |  | 
      
 
Inserts the specified integer-valued feature into this derivation's root feature list. If an identical feature already exists, this method does nothing. 
- Parameters
- 
  
    | [in] | featureType | The type of the desired feature. |  | [in] | value | The value to associate with the specified feature type. |  
 
 
 
      
        
          | void ULDerivation::addFeature | ( | const ULFeature & | feature | ) |  | 
      
 
Inserts the specified feature into this derivation's root feature list. If an identical feature already exists, this method does nothing. 
- Parameters
- 
  
    | [in] | feature | the desired feature. |  
 
 
 
Inserts the specified feature into this derivation's root feature list. If an identical feature already exists, this method does nothing. 
- Parameters
- 
  
    | [in] | featureType | The type of the desired feature. |  | [in] | value | The value to associate with the specified feature type. |  
 
 
 
Add the specified inflection rule to the end of this derivation's list of rules. 
 
 
      
        
          | void ULDerivation::clear | ( |  | ) |  | 
      
 
Sets this rule to its default state. 
 
 
      
        
          | void ULDerivation::clearRootFeatureList | ( |  | ) |  | 
      
 
Clears this derivation's root feature list. 
 
 
Used by ULInflector and ULDissector to perform some final adjustments to make this derivation valid. Users of ULAPI should not call this method. 
 
 
      
        
          | uluint32 ULDerivation::getClassID | ( |  | ) | const | 
      
 
 
      
        
          | const ULString & ULDerivation::getDerivedForm | ( |  | ) | const | 
      
 
 
      
        
          | const ULPartOfSpeech & ULDerivation::getDerivedFormPartOfSpeech | ( |  | ) | const | 
      
 
 
Gets the feature associated with the specified feature type, if any such value exists in this derivation's root feature list.
- Returns
- true if this derivation has a feature with the specified feature type. 
- Parameters
- 
  
    | [in] | featureType | the type of the desired feature. |  | [out] | feature | the desired feature. |  
 
 
 
- Returns
- a reference to this derivation's list of inflection rules. 
 
 
      
        
          | const ULString & ULDerivation::getRoot | ( |  | ) | const | 
      
 
 
- Returns
- a const reference to this derivation's root feature list, in case the caller wishes, for example, to traverse the entire list instead of using hasFeature or getFeature. 
 
 
      
        
          | int ULDerivation::getValidity | ( |  | ) | const | 
      
 
 
      
        
          | bool ULDerivation::hasFeature | ( | const ULFeatureType & | featureType | ) | const | 
      
 
- Returns
- true if this derivation has a feature with the specified feature type. 
 
 
Builds this derivation by starting from the specified word and applying the specified rules in sequence.
- Returns
- true if the sequence of inflection rules can be applied successfully (i.e. ULInfelctionRule::applyForInflection returns true for each rule in ruleList). If any rule application fails, this derivation is cleared and initializeFromWordAndRules returns false. 
- Parameters
- 
  
    | [in] | language | the derivation's language |  | [in] | word | the word from which to initialize this derivation. |  | [in] | ruleList | the inflection rules to apply to form this derivation. |  
 
 
 
      
        
          | bool ULDerivation::isReverseExtendable | ( |  | ) | const | 
      
 
 
      
        
          | bool ULDerivation::operator!= | ( | const ULDerivation & | other | ) | const | 
      
 
 
      
        
          | bool ULDerivation::operator< | ( | const ULDerivation & | other | ) | const | 
      
 
Comparison operator, only so ULList<ULDerivation> will compile in SWIG. Do not try to use this operator for anything sensible. It always returns false. 
 
 
      
        
          | bool ULDerivation::operator== | ( | const ULDerivation & | other | ) | const | 
      
 
 
Add the specified inflection rule to the beginning of this derivation's list of rules. 
 
 
      
        
          | void ULDerivation::removeBackRule | ( |  | ) |  | 
      
 
Remove the inflection rule from the end of the inflection rule list (i.e. at the end that results in the current derived form). 
 
 
      
        
          | void ULDerivation::removeFrontRule | ( |  | ) |  | 
      
 
Remove the inflection rule from the front of the inflection rule list. 
 
 
      
        
          | void ULDerivation::setClassID | ( | uluint32 | classID | ) |  | 
      
 
 
      
        
          | void ULDerivation::setDerivedForm | ( | const ULString & | newDerivedForm | ) |  | 
      
 
 
      
        
          | void ULDerivation::setDerivedFormPartOfSpeech | ( | const ULPartOfSpeech & | newPartOfSpeech | ) |  | 
      
 
 
      
        
          | void ULDerivation::setFeature | ( | const ULFeatureType & | featureType, | 
        
          |  |  | int | value | 
        
          |  | ) |  |  | 
      
 
If this derivation's root feature list already has a feature with the specified ID, change that feature's value to the specified value. Otherwise, add a new feature to the list. If more than one feature with the specified ID already exists, change the value for all of the matching features. 
- Parameters
- 
  
    | [in] | featureType | the type of the desired feature. |  | [in] | value | the integer value to associate with the specified feature type. |  
 
 
 
      
        
          | void ULDerivation::setLanguage | ( | const ULLanguage & | newLanguage | ) |  | 
      
 
 
      
        
          | void ULDerivation::setRoot | ( | const ULString & | newRoot | ) |  | 
      
 
 
      
        
          | void ULDerivation::setRootPartOfSpeech | ( | const ULPartOfSpeech & | newPartOfSpeech | ) |  | 
      
 
 
      
        
          | void ULDerivation::setValidity | ( | int | newValidity | ) |  | 
      
 
 
      
        
          | ULString ULDerivation::toString | ( | bool | verbose = false, | 
        
          |  |  | bool | showOnlyEndpoints = false | 
        
          |  | ) |  | const | 
      
 
- Returns
- a human-readable representation of the derivation. It won't contain all of the internal structure of the derivation, 
 
 
The documentation for this class was generated from the following files: