class Google::Apis::LanguageV1beta1::PartOfSpeech

Represents part of speech information for a token.

Attributes

aspect[RW]

The grammatical aspect. Corresponds to the JSON property `aspect` @return [String]

case[RW]

The grammatical case. Corresponds to the JSON property `case` @return [String]

form[RW]

The grammatical form. Corresponds to the JSON property `form` @return [String]

gender[RW]

The grammatical gender. Corresponds to the JSON property `gender` @return [String]

mood[RW]

The grammatical mood. Corresponds to the JSON property `mood` @return [String]

number[RW]

The grammatical number. Corresponds to the JSON property `number` @return [String]

person[RW]

The grammatical person. Corresponds to the JSON property `person` @return [String]

proper[RW]

The grammatical properness. Corresponds to the JSON property `proper` @return [String]

reciprocity[RW]

The grammatical reciprocity. Corresponds to the JSON property `reciprocity` @return [String]

tag[RW]

The part of speech tag. Corresponds to the JSON property `tag` @return [String]

tense[RW]

The grammatical tense. Corresponds to the JSON property `tense` @return [String]

voice[RW]

The grammatical voice. Corresponds to the JSON property `voice` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/language_v1beta1/classes.rb, line 531
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/language_v1beta1/classes.rb, line 536
def update!(**args)
  @aspect = args[:aspect] if args.key?(:aspect)
  @case = args[:case] if args.key?(:case)
  @form = args[:form] if args.key?(:form)
  @gender = args[:gender] if args.key?(:gender)
  @mood = args[:mood] if args.key?(:mood)
  @number = args[:number] if args.key?(:number)
  @person = args[:person] if args.key?(:person)
  @proper = args[:proper] if args.key?(:proper)
  @reciprocity = args[:reciprocity] if args.key?(:reciprocity)
  @tag = args[:tag] if args.key?(:tag)
  @tense = args[:tense] if args.key?(:tense)
  @voice = args[:voice] if args.key?(:voice)
end