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

This class provides information about semantic features and grammatical categories used for the classes derived from SemanticFeatureConceptBase for various languages. More...

#include <LanguageGrammarFeatures.hpp>

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

Public Member Functions

::inflection::util::ULocale getLanguage () const
 
int32_t getCategoriesCount () const
 
std::map< std::u16string, ::inflection::lang::features::LanguageGrammarFeatures_GrammarCategorygetCategories () const
 
int32_t getFeaturesCount () const
 
std::set<::inflection::lang::features::LanguageGrammarFeatures_GrammarFeaturesgetFeatures () const
 
 ~LanguageGrammarFeatures () override
 
- Public Member Functions inherited from inflection::Object
virtual ::std::u16string toString () const
 
virtual ~Object ()
 

Static Public Member Functions

::inflection::lang::features::LanguageGrammarFeatures getLanguageGrammarFeatures (const ::inflection::util::ULocale &locale)
 
static std::set<::inflection::util::ULocalegetKnownLanguages ()
 

Friends

class LanguageGrammarFeatures_GrammarCategory
 
class LanguageGrammarFeatures_Feature
 
class LanguageGrammarFeatures_GrammarFeatures
 

Detailed Description

This class provides information about semantic features and grammatical categories used for the classes derived from SemanticFeatureConceptBase for various languages.

Author
George Rhoten

Definition at line 22 of file LanguageGrammarFeatures.hpp.

Constructor & Destructor Documentation

◆ ~LanguageGrammarFeatures()

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

Destructor

Member Function Documentation

◆ getCategories()

std::map< std::u16string, ::inflection::lang::features::LanguageGrammarFeatures_GrammarCategory > inflection::lang::features::LanguageGrammarFeatures::getCategories ( ) const

Returns a map of category names to GrammarCategory objects.

◆ getCategoriesCount()

int32_t inflection::lang::features::LanguageGrammarFeatures::getCategoriesCount ( ) const

Returns the total number of categories. This can be helpful if you don't need a copy of all of the categories.

◆ getFeatures()

std::set<::inflection::lang::features::LanguageGrammarFeatures_GrammarFeatures > inflection::lang::features::LanguageGrammarFeatures::getFeatures ( ) const

Returns a map of grammar feature names to GrammarFeatures objects.

◆ getFeaturesCount()

int32_t inflection::lang::features::LanguageGrammarFeatures::getFeaturesCount ( ) const

Returns the total number of features. This can be helpful if you don't need a copy of all of the features.

◆ getKnownLanguages()

static std::set<::inflection::util::ULocale > inflection::lang::features::LanguageGrammarFeatures::getKnownLanguages ( )
static

Returns a set of locales that are known for querying LanguageGrammarFeatures.

◆ getLanguage()

::inflection::util::ULocale inflection::lang::features::LanguageGrammarFeatures::getLanguage ( ) const

Returns the resolved language for this object.

◆ getLanguageGrammarFeatures()

::inflection::lang::features::LanguageGrammarFeatures inflection::lang::features::LanguageGrammarFeatures::getLanguageGrammarFeatures ( const ::inflection::util::ULocale locale)
static

Return the LanguageGrammarFeatures as specified for the locale.

Exceptions
IllegalArgumentExceptionis thrown if an unknown locale is requested.

Friends And Related Symbol Documentation

◆ LanguageGrammarFeatures_Feature

friend class LanguageGrammarFeatures_Feature
friend

Definition at line 80 of file LanguageGrammarFeatures.hpp.

◆ LanguageGrammarFeatures_GrammarCategory

Definition at line 79 of file LanguageGrammarFeatures.hpp.

◆ LanguageGrammarFeatures_GrammarFeatures

Definition at line 81 of file LanguageGrammarFeatures.hpp.


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