types#
Classes#
Word Part of Speech |
class Word
#
class WordPOSEnum
#
- class rootski.gql.language.word.types.WordPOSEnum(value)[source]#
Bases:
enum.Enum
Word Part of Speech
- static from_string(pos: Literal['noun', 'verb', 'particle', 'adjective', 'preposition', 'participle', 'pronoun', 'conjunction', 'adverb', 'interjection']) rootski.gql.language.word.types.WordPOSEnum [source]#
Derive the appropriate pos enum from a string.
- Raises
RootskiGraphQLError – if the lowercased given
pos
does not match any of the enum value names