segram.grammar.lang.en.phrases module
- class segram.grammar.lang.en.phrases.EnglishPhrase(*args: Any, **kwds: Any)[source]
Bases:
EnglishGrammar,PhraseEnglish phrase.
All grammar classes must be defined as slots classes. This is necessary for ensuring low-memory footprint and better computational efficiency. Even classes with no new slots need to declare
__slots__ = (). This requirement is checked during class construction. Other class-specific requirements of this sort as well as their related validation checks may be implemented on specialized grammar classes using the standard__init_subclass__interface. This allows abstract base classes further down the inheritance chain to check for more complex requirements as well as apply dynamic class customizations.
- class segram.grammar.lang.en.phrases.EnglishVerbPhrase(*args: Any, **kwds: Any)[source]
Bases:
EnglishGrammar,VerbPhraseEnglish verb phrase.
All grammar classes must be defined as slots classes. This is necessary for ensuring low-memory footprint and better computational efficiency. Even classes with no new slots need to declare
__slots__ = (). This requirement is checked during class construction. Other class-specific requirements of this sort as well as their related validation checks may be implemented on specialized grammar classes using the standard__init_subclass__interface. This allows abstract base classes further down the inheritance chain to check for more complex requirements as well as apply dynamic class customizations.
- class segram.grammar.lang.en.phrases.EnglishNounPhrase(*args: Any, **kwds: Any)[source]
Bases:
EnglishGrammar,NounPhraseEnglish noun phrase.
All grammar classes must be defined as slots classes. This is necessary for ensuring low-memory footprint and better computational efficiency. Even classes with no new slots need to declare
__slots__ = (). This requirement is checked during class construction. Other class-specific requirements of this sort as well as their related validation checks may be implemented on specialized grammar classes using the standard__init_subclass__interface. This allows abstract base classes further down the inheritance chain to check for more complex requirements as well as apply dynamic class customizations.
- class segram.grammar.lang.en.phrases.EnglishDescPhrase(*args: Any, **kwds: Any)[source]
Bases:
EnglishGrammar,DescPhraseEnglish descriptive phrase.
All grammar classes must be defined as slots classes. This is necessary for ensuring low-memory footprint and better computational efficiency. Even classes with no new slots need to declare
__slots__ = (). This requirement is checked during class construction. Other class-specific requirements of this sort as well as their related validation checks may be implemented on specialized grammar classes using the standard__init_subclass__interface. This allows abstract base classes further down the inheritance chain to check for more complex requirements as well as apply dynamic class customizations.
- class segram.grammar.lang.en.phrases.EnglishPrepPhrase(*args: Any, **kwds: Any)[source]
Bases:
EnglishGrammar,PrepPhraseEnglish prepositional phrase.
All grammar classes must be defined as slots classes. This is necessary for ensuring low-memory footprint and better computational efficiency. Even classes with no new slots need to declare
__slots__ = (). This requirement is checked during class construction. Other class-specific requirements of this sort as well as their related validation checks may be implemented on specialized grammar classes using the standard__init_subclass__interface. This allows abstract base classes further down the inheritance chain to check for more complex requirements as well as apply dynamic class customizations.